-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename files and setup CI to run on test success
- Loading branch information
Showing
3 changed files
with
57 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Tests] | ||
types: [completed] | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 # this setting is automatically applied by rust-cache but documented here for explicitness | ||
CARGO_NET_RETRY: 10 | ||
RUST_BACKTRACE: short | ||
RUSTFLAGS: "-D warnings" | ||
RUSTUP_MAX_RETRIES: 10 | ||
|
||
jobs: | ||
on-failure: | ||
runs-on: oracles-20.04 | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
steps: | ||
- run: echo 'The triggering workflow failed' | ||
on-success: | ||
runs-on: oracles-20.04 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-build-release | ||
cancel-in-progress: true | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} && contains(github.ref, 'refs/tags/') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy, rustfmt | ||
|
||
- name: Install protoc | ||
run: sudo apt-get install -y protobuf-compiler | ||
|
||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Build Release | ||
run: cargo build --all --release | ||
|
||
- name: Debian packaging | ||
env: | ||
PACKAGECLOUD_API_KEY: ${{ secrets.PACKAGECLOUD_API_KEY }} | ||
run: | | ||
chmod +x ./.github/scripts/make_debian.sh | ||
./.github/scripts/make_debian.sh |
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 was deleted.
Oops, something went wrong.