Skip to content

Commit

Permalink
ci: Run build tests on any branch
Browse files Browse the repository at this point in the history
Update relevant dependency action API versions.
  • Loading branch information
ravenexp committed Jun 24, 2024
1 parent 586607f commit 93eefdc
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 93eefdc

Please sign in to comment.