Merge branch 'master' of https://github.com/greggirwin/red #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS-x86 | |
on: push | |
jobs: | |
Run-RS-Tests: | |
runs-on: [self-hosted, macOS, X64] | |
steps: | |
- name: Clean working directory | |
run: | | |
echo "Cleaning up previous run" | |
rm -rf ${{ github.workspace }}/* | |
- uses: actions/checkout@v4 | |
- name: Run RS tests | |
run: rebpro -qws system/tests/run-all.r --batch | |
# upload log file if any test failed | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: RS-Tests-macOS | |
path: quick-test/quick-test.log | |
Run-Red-Tests: | |
runs-on: [self-hosted, macOS, X64] | |
needs: Run-RS-Tests | |
steps: | |
- name: Run Red tests | |
run: rebpro -qws tests/run-all.r --batch | |
# upload log file if any test failed | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: Red-Tests-macOS | |
path: quick-test/quick-test.log | |
Build-Toolchain: | |
runs-on: [self-hosted, macOS, X64] | |
needs: Run-Red-Tests | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Build Red Toolchain | |
run: | | |
cp ~/Red/red/build/encap-paths.r build/encap-paths.r | |
cp ~/Red/red/build/license.key build/license.key | |
cp ~/build-red/* ./ | |
rebol -qws build-red-osx.r > build.log | |
- name: Set env | |
run: echo "red_toolchain=$(ls red-toolchain-*)" >> "$GITHUB_ENV" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.red_toolchain }} | |
path: red-toolchain-* |