Skip to content

Commit

Permalink
ci: fix macos release
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo authored Nov 8, 2021
1 parent c16a7e4 commit a9e7d15
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-10.15
# Build for these versions to force backward compat with certain
# toolchains (GLIBC < 2.29 in case of ubuntu-18.04)
- ubuntu-18.04
Expand All @@ -28,14 +27,33 @@ jobs:
toolchain: nightly
- id: tag
uses: dawidd6/action-get-tag@v1
- run: cargo +nightly build --release --features telemetry
- run: cargo +nightly build --release --features telemetry --bin synth
- working-directory: target/release
run: tar -czf synth.tar.gz synth
- uses: actions/upload-artifact@v2
with:
name: synth-${{ steps.tag.outputs.tag }}-${{ matrix.os }}-x86_64
path: target/release/synth.tar.gz

build-osx:
name: build
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- id: tag
uses: dawidd6/action-get-tag@v1
- run: cargo +nightly build --release --features telemetry --bin synth
- run: sudo /usr/sbin/purge
- working-directory: target/release
run: tar -czf synth.tar.gz synth
- uses: actions/upload-artifact@v2
with:
name: synth-${{ steps.tag.outputs.tag }}-osx-latest-x86_64
path: target/release/synth.tar.gz

build-windows:
name: build-windows
runs-on: windows-latest
Expand All @@ -51,7 +69,7 @@ jobs:
run: |
VERSION=$(cargo metadata --format-version 1 | jq '.packages[] | select (.name == "synth") | .version' -r)
echo "::set-output name=version::${VERSION}"
- run: cargo +nightly build --release --features telemetry
- run: cargo +nightly build --release --features telemetry --bin synth
- id: install-wix
run: nuget install WiX -Version 3.11.2
- id: install-cargo-wix
Expand Down Expand Up @@ -83,7 +101,7 @@ jobs:

release:
name: release
needs: [ build, build-windows ]
needs: [ build, build-osx, build-windows ]
runs-on: ubuntu-latest
steps:
- id: tag
Expand Down

0 comments on commit a9e7d15

Please sign in to comment.