Raven-MacOS-x86_64 #243
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: Raven-MacOS-x86_64 | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
# Cancel any other build tasks running right now to prevent stale uploads | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Add Nightly | |
run: rustup toolchain install nightly | |
- name: Test | |
run: cargo +nightly test --verbose --bin magpie -- --nocapture | |
- name: Build | |
run: cargo +nightly build --verbose --release --bin magpie | |
- name: Build Wrapper | |
run: cargo +nightly build --verbose --release --bin magpie-wrapper | |
- name: Release Raven | |
uses: shogo82148/actions-upload-release-asset@v1 | |
if: github.event_name == 'push' && github.repository == 'BigBadE/Raven-Language' | |
with: | |
upload_url: https://uploads.github.com/repos/BigBadE/Raven-Language/releases/123226271/assets | |
asset_path: target/release/magpie | |
asset_name: Magpie-macos | |
overwrite: true | |
- name: Release Magpie Wrapper | |
uses: shogo82148/actions-upload-release-asset@v1 | |
if: github.event_name == 'push' && github.repository == 'BigBadE/Raven-Language' | |
with: | |
upload_url: https://uploads.github.com/repos/BigBadE/Raven-Language/releases/123226271/assets | |
asset_path: target/release/magpie-wrapper | |
asset_name: Magpie-wrapper-macos | |
overwrite: true |