diff --git a/.github/workflows/Tests.yml b/.github/workflows/CI.yml similarity index 99% rename from .github/workflows/Tests.yml rename to .github/workflows/CI.yml index 3b2dea398..0d177663f 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/CI.yml @@ -1,4 +1,4 @@ -name: Tests +name: CI on: pull_request: diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml deleted file mode 100644 index bca7d03ad..000000000 --- a/.github/workflows/Package.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Package - -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@v4 - - - uses: dtolnay/rust-toolchain@stable - - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler - - - name: Cache - uses: actions/cache@v4 - 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