From 6708045124f8e8c551d17dbcc2bb34e7baf4bddd Mon Sep 17 00:00:00 2001 From: himkt Date: Mon, 15 Dec 2025 09:40:48 +0900 Subject: [PATCH] ci: use ubuntu-latest and newer versions of actions --- .github/workflows/doc.yml | 16 +++++----------- .github/workflows/main.yml | 16 ++++++---------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 33f1592..55eda57 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -1,4 +1,4 @@ -name: GitHub Pages +name: CD on: push: @@ -10,19 +10,13 @@ env: jobs: deploy: - runs-on: ubuntu-20.04 - + runs-on: ubuntu-latest concurrency: group: ${{ github.workflow }}-${{ github.ref }} - steps: - - uses: actions/checkout@v3 - - - name: Run doc --no-deps - run: cargo doc - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + - uses: actions/checkout@v6 + - run: cargo doc + - uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./target/doc diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ae98f3..0953796 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,22 +1,18 @@ -name: Rust +name: CI on: push: - branches: [ main ] + branches: + - main pull_request: - branches: [ main ] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v6 + - run: cargo build --verbose + - run: cargo test --verbose