diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2021-05-10 00:13:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-10 00:13:56 +0200 |
| commit | 048b467d643f42c87e4aa88e27ca2fba82710ab1 (patch) | |
| tree | 8d733bb1b2b294b357dd1360b4c0f21c78d6d85f | |
| parent | ff3fd70204fd7693f590d66c0019686c6590d9ab (diff) | |
Update nightly.yml
| -rw-r--r-- | .github/workflows/nightly.yml | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 449c5d4..53e4161 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -6,6 +6,36 @@ on: schedule: - cron: 0 20 * * * jobs: + + dist-x86_64-darwin: + runs-on: macos-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v1 + - name: Download LLVM and setup PATH + run: | + brew install llvm@11 + echo "/usr/local/opt/llvm@11/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 + - name: Move to Dist + run: | + mkdir dist + mv ols dist/ols-x86_64-darwin + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: ols-x86_64-darwin + path: ./dist + dist-x86_64-unknown-linux-gnu: timeout-minutes: 30 runs-on: ubuntu-latest @@ -73,7 +103,7 @@ jobs: name: publish runs-on: ubuntu-16.04 timeout-minutes: 30 - needs: ['dist-x86_64-pc-windows-msvc', 'dist-x86_64-unknown-linux-gnu'] + needs: ['dist-x86_64-pc-windows-msvc', 'dist-x86_64-unknown-linux-gnu', 'dist-x86_64-darwin'] steps: - name: Install Nodejs uses: actions/setup-node@v1 @@ -101,6 +131,8 @@ jobs: zip -r ols-x86_64-pc-windows-msvc.zip ols-x86_64-pc-windows-msvc.exe builtin chmod +x ols-x86_64-unknown-linux-gnu zip -r ols-x86_64-unknown-linux-gnu.zip ols-x86_64-unknown-linux-gnu builtin + chmod +x ols-x86_64-darwin + zip -r ols-x86_64-darwin.zip ols-x86_64-darwin builtin rm -rf builtin - name: Publish Release uses: ./.github/actions/github-release |