Raven-Windows #870
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-Windows | |
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: windows-latest | |
steps: | |
- name: Checkout repo | |
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.exe | |
asset_name: Magpie-windows.exe | |
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.exe | |
asset_name: Magpie-wrapper-windows.exe | |
overwrite: true |