Skip to content

updated macos build 12 -> 13 #55

updated macos build 12 -> 13

updated macos build 12 -> 13 #55

Workflow file for this run

name: New release
on:
push:
tags:
- v[0-9]*
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-14]
steps:
- name: Setup Stack
uses: haskell-actions/[email protected]
with:
ghc-version: '9.6.4' # Exact version of ghc to use, should match the stackage resolver ghc version
# cabal-version: 'latest'. Omitted, but defaults to 'latest'
enable-stack: true
stack-version: 'latest'
- name: Clone project
uses: actions/checkout@v3
# Fetch all history so git describe works
- run: |
git fetch --prune --unshallow
- name: Cache ~/.stack
uses: actions/cache@v3
with:
path: ~/.stack
key: stack-${{ runner.os }}-${{ runner.arch }}
- name: Build compiler and generate zip
run: "cd haskell; stack build adl-compiler; ./tools/make-dist.hs"
- name: Upload dist directory artifacts
uses: actions/upload-artifact@v3
with:
name: dist-${{ runner.os }}-${{ runner.arch }}
path: dist
release:
name: Create Github Release
needs: [build]
permissions:
contents: write
runs-on: ubuntu-latest
steps:
# strip "refs/tags/v"
- name: Determine version
id: version
run:
echo "version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
- name: Fetch linux build
uses: actions/download-artifact@v3
with:
name: dist-Linux-X64
path: dist-Linux-X64
- name: Fetch macOS X64 build
uses: actions/download-artifact@v3
with:
name: dist-macOS-X64
path: dist-macOS-X64
- name: Fetch macOS ARM64 build
uses: actions/download-artifact@v3
with:
name: dist-macOS-ARM64
path: dist-macOS-ARM64
- run: |
mv dist-Linux-X64/adl-bindist.zip ./adl-bindist-${{ steps.version.outputs.version }}-linux-x64.zip
mv dist-macOS-X64/adl-bindist.zip ./adl-bindist-${{ steps.version.outputs.version }}-macos-x64.zip
mv dist-macOS-ARM64/adl-bindist.zip ./adl-bindist-${{ steps.version.outputs.version }}-macos-arm64.zip
ls -al
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ steps.version.outputs.version }}
files: |
adl-bindist-${{ steps.version.outputs.version }}-linux-x64.zip
adl-bindist-${{ steps.version.outputs.version }}-macos-x64.zip
adl-bindist-${{ steps.version.outputs.version }}-macos-arm64.zip