Skip to content

Merge pull request #9 from samueltardieu/vendored-swagger-ui #58

Merge pull request #9 from samueltardieu/vendored-swagger-ui

Merge pull request #9 from samueltardieu/vendored-swagger-ui #58

Workflow file for this run

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: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test
args: --features web
codecov:
needs: test
name: Code Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
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: stable
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: stable
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: stable
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