SW5 (#177) #136
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: Build Artifacts | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
macos: | |
name: Build MacOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: cargo build --release | |
uses: clechasseur/rs-cargo@v1 | |
with: | |
command: build | |
args: --release | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: reveaal-macos | |
path: target/release/reveaal | |
if-no-files-found: error | |
retention-days: 7 | |
win: | |
name: Build Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: cargo build --release | |
uses: clechasseur/rs-cargo@v1 | |
with: | |
command: build | |
args: --release | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: reveaal-windows | |
path: target/release/reveaal.exe | |
if-no-files-found: error | |
retention-days: 7 | |
ubuntu: | |
name: Build Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: cargo build --release | |
uses: clechasseur/rs-cargo@v1 | |
with: | |
command: build | |
args: --release | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: reveaal-ubuntu | |
path: target/release/reveaal | |
if-no-files-found: error | |
retention-days: 7 |