Skip to content

Commit

Permalink
ci(gha): try arm64 runner
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Castro <[email protected]>
  • Loading branch information
tiagolobocastro committed Dec 27, 2024
1 parent 93d0d20 commit c79c1bb
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/pr-code-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,35 @@ on:
merge_group:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
push:
branches:
- gha
jobs:
rust-lint:
runs-on: ubuntu-latest
runs-on: github-arm64-2c-8gb
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-22.11
- name: nix-shell
run: nix-shell --pure --run exit
- name: cargo-clippy
run: nix-shell --pure --run ./scripts/rust-linter.sh
- name: cargo-fmt
run: nix-shell --pure --run "FMT_OPTS=--check ./scripts/rust-style.sh"
nix-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-22.11
- name: nix-shell
run: nix-shell --pure -p nixpkgs-fmt --run "nixpkgs-fmt --check ."
- name: Setup tmate session
if: ${{ failure() }}
timeout-minutes: 240
uses: mxschmitt/action-tmate@v3
# nix-lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: 'recursive'
# - uses: cachix/install-nix-action@v26
# with:
# nix_path: nixpkgs=channel:nixos-22.11
# - name: nix-shell
# run: nix-shell --pure -p nixpkgs-fmt --run "nixpkgs-fmt --check ."

0 comments on commit c79c1bb

Please sign in to comment.