Deferred calls #104
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: CI/CD | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
repository_dispatch: | |
types: [remote-build] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
RUSTFLAGS: "--deny warnings" | |
RUST_TOOLCHAIN: nightly-2023-02-27 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
ref: ${{ github.head_ref }} | |
- name: Update Submodule | |
run: | | |
git submodule update --init --force --recursive --remote | |
- uses: arduino/setup-protoc@v2 | |
with: | |
version: "23.2" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "build" | |
save-if: ${{ github.ref == 'refs/heads/main' }} | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- run: cargo build --release --all-features | |
if: ${{ github.ref == 'refs/heads/main' }} | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_user_name: massabot | |
commit_user_email: [email protected] | |
commit_author: massabot <[email protected]> |