Skip to content

Commit

Permalink
ci: use native m1 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Feb 4, 2024
1 parent 7d1810d commit 270b6d3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,23 @@ jobs:
run: brew update && brew install crystal || true
- name: Build the binary
# Statically link most non-system libraries
run: |
cc=$(env CRYSTAL_LIBRARY_PATH=`pwd`/libs/x86_64-apple-darwin shards build --target="x86_64-apple-darwin" --cross-compile --no-debug --release -Dpreview_mt | tail -n 1)
eval $cc
run: env CRYSTAL_LIBRARY_PATH=`pwd`/libs/x86_64-apple-darwin shards build --no-debug --release -Dpreview_mt
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: zap_x86_64-apple-darwin
path: ./bin/zap
if-no-files-found: error
macos_arm64:
runs-on: macos-latest
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Crystal
run: brew update && brew install crystal || true
- name: Build the binary
# Statically link most non-system libraries
run: |
cc=$(env CRYSTAL_LIBRARY_PATH=`pwd`/libs/arm64-apple-darwin shards build --target="arm64-apple-darwin" --cross-compile --no-debug --release | tail -n 1 | sed -e "s/-rdynamic/--target=arm64-apple-darwin -rdynamic/g")
eval $cc
run: env CRYSTAL_LIBRARY_PATH=`pwd`/libs/arm64-apple-darwin shards build --no-debug --release -Dpreview_mt
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 270b6d3

Please sign in to comment.