-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
81 additions
and
18 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
# Cancel already running jobs | ||
concurrency: | ||
group: build_${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
include: | ||
- name: Ubuntu 22.04 - Release - x86_64 | ||
runner: ubuntu-22.04 | ||
cargo_flags: --release | ||
- name: Ubuntu 22.04 - Release - aarch64 | ||
runner: ubuntu-22.04 | ||
cargo_flags: --target aarch64-unknown-linux-gnu --release | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# We purposefully dont cache here as build_and_test will always be the bottleneck | ||
# so we should leave the cache alone so build_and_test can make more use of it. | ||
- name: Install ubuntu packages | ||
run: shotover-proxy/build/install_ubuntu_packages.sh | ||
- name: Install cargo-hack | ||
run: cargo install cargo-hack --version 0.5.8 | ||
- name: Ensure that shotover-proxy compiles and has no warnings under every possible combination of features | ||
# some things to explicitly point out: | ||
# * clippy also reports rustc warnings and errors | ||
# * clippy --all-targets is not run so we only build the shotover_proxy executable | ||
run: cargo hack --feature-powerset clippy --locked ${{ matrix.cargo_flags }} -- -D warnings |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: License Check | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
# Cancel already running jobs | ||
concurrency: | ||
group: license_check_${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
license_check: | ||
runs-on: ubuntu-22.04 | ||
name: License Check | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: cargo install --locked cargo-deny | ||
- run: cargo deny check licenses |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[toolchain] | ||
channel = "1.63" | ||
components = [ "rustfmt", "clippy" ] | ||
targets = [ "aarch64-unknown-linux-gnu" ] |
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