Bump rtz-build. #49
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
on: [push] | |
name: Build and Test | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features full --features web | |
codecov: | |
needs: test | |
name: Code Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-all-crates: "true" | |
- name: Install tarpaulin | |
run: cargo install cargo-tarpaulin | |
continue-on-error: true | |
- run: cargo tarpaulin --features web --skip-clean --out Xml | |
- uses: codecov/codecov-action@v2 | |
build_windows: | |
needs: test | |
name: Build Windows | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install mingw-w64 | |
run: sudo apt-get install mingw-w64 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2023-07-04 | |
target: x86_64-pc-windows-gnu | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features full --target x86_64-pc-windows-gnu --release | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: rtz_x86_64-pc-windows-gnu | |
path: target/x86_64-pc-windows-gnu/release/rtz.exe | |
build_linux: | |
needs: test | |
name: Build Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2023-07-04 | |
target: x86_64-unknown-linux-gnu | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features full --target x86_64-unknown-linux-gnu --release | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: rtz_x86_64-unknown-linux-gnu | |
path: target/x86_64-unknown-linux-gnu/release/rtz | |
build_macos: | |
needs: test | |
name: Build MacOS | |
# TODO: Eventually, it would be better to cross-compile with `aarch64-apple-darwin`. | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2023-07-04 | |
target: aarch64-apple-darwin | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features full --target aarch64-apple-darwin --release | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: rtz_aarch64-apple-darwin | |
path: target/aarch64-apple-darwin/release/rtz |