diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35c8d44..f900523 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,9 +16,7 @@ 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: @@ -26,7 +24,7 @@ jobs: 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 @@ -34,9 +32,7 @@ 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/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: