From 93eefdcad22e3d15eb448dd7bfcfb5b13c6f293b Mon Sep 17 00:00:00 2001 From: Sergey Kvachonok Date: Mon, 24 Jun 2024 22:10:10 +0300 Subject: [PATCH] ci: Run build tests on any branch Update relevant dependency action API versions. --- .github/workflows/rust.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 68a7d41..fff4f7e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,7 +2,6 @@ name: Test on: push: - branches: [ main ] pull_request: branches: [ main ] @@ -19,7 +18,7 @@ jobs: - windows-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install the MinGW and LLVM toolchains if: matrix.os == 'ubuntu-latest' run: sudo apt-get install -y gcc-mingw-w64 llvm @@ -31,20 +30,18 @@ jobs: name: Test zig dlltool runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: goto-bus-stop/setup-zig@v1 - with: - version: 0.10.1 + - uses: actions/checkout@v4 + - uses: goto-bus-stop/setup-zig@v2 - name: Run tests with zig run: ZIG_COMMAND=zig cargo test --verbose zigwheel: name: Test python -m ziglang dlltool runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install ziglang package run: pip install ziglang - name: Run tests with python -m ziglang @@ -53,13 +50,13 @@ jobs: name: Check code formatting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run cargo fmt run: cargo fmt -- --check clippy: name: Clippy lints runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run cargo clippy run: cargo clippy --tests -- --deny warnings