From fbe37287c92da2b21ef8599ddcebcf90a698e7c2 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 23 Apr 2025 18:44:01 +0200 Subject: [PATCH] Update CI --- .github/bors.toml | 4 ---- .github/workflows/ci.yml | 19 ++++++------------- 2 files changed, 6 insertions(+), 17 deletions(-) delete mode 100644 .github/bors.toml diff --git a/.github/bors.toml b/.github/bors.toml deleted file mode 100644 index 7818018..0000000 --- a/.github/bors.toml +++ /dev/null @@ -1,4 +0,0 @@ -block_labels = ["S-blocked", "S-waiting-on-team"] -delete_merged_branches = true -required_approvals = 1 -status = ["build"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f888f5d..5511aac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,18 +2,14 @@ name: CI on: push: - branches: [ staging, trying, master ] pull_request: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - name: Install Python dependencies run: | @@ -22,17 +18,14 @@ jobs: run: echo "~/.local/bin" >> $GITHUB_PATH - name: Cache Cargo installed binaries - uses: actions/cache@v1 + uses: actions/cache@v4 id: cache-cargo with: path: ~/cargo-bin key: cache-cargo - name: Install mdbook if: steps.cache-cargo.outputs.cache-hit != 'true' - uses: actions-rs/install@v0.1 - with: - crate: mdbook - version: latest + run: cargo install mdbook - name: Copy mdbook to cache directory if: steps.cache-cargo.outputs.cache-hit != 'true' run: | @@ -48,7 +41,7 @@ jobs: - name: Deploy book if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: public