aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-01-29 23:01:21 +0100
committerLaytan Laats <laytanlaats@hotmail.com>2024-01-29 23:01:21 +0100
commit8c0a8232071f1a1461795a040f6e2455e21b8a4d (patch)
tree0a20c4b3d3bfcd3814612737759f808d67636932 /.github
parentd93559abe647e733b0338cf0707aba09c350481a (diff)
arm64 builds
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nightly.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 8c789a5..4811f01 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -7,6 +7,36 @@ on:
#- cron: 0 20 * * *
jobs:
+ dist-arm64-darwin:
+ runs-on: macos-latest
+ timeout-minutes: 15
+ steps:
+ - uses: actions/checkout@v1
+ - name: Download LLVM and setup PATH
+ run: |
+ brew install llvm@14
+ echo "/usr/local/opt/llvm@14/bin" >> $GITHUB_PATH
+ TMP_PATH=$(xcrun --show-sdk-path)/user/include
+ echo "CPATH=$TMP_PATH" >> $GITHUB_ENV
+ - name: Download Odin
+ run: |
+ git clone https://github.com/odin-lang/Odin
+ - name: Build Odin
+ run: |
+ cd Odin
+ make release
+ - name: Build ols
+ run: ./build.sh CI -target:darwin_arm64 -extra-linker-flags:"--target=arm64-apple-macos"
+ - name: Move to Dist
+ run: |
+ mkdir dist
+ mv ols dist/ols-arm64-darwin
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v2
+ with:
+ name: dist-arm64-darwin
+ path: ./dist
+
dist-x86_64-darwin:
runs-on: macos-latest
timeout-minutes: 15