Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions rust/.github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ permissions:
contents: read

jobs:
permissions:
name: Permissions
runs-on: ${{ matrix.architecture }}
strategy:
matrix:
architecture: [ubuntu-24.04, ubuntu-24.04-arm]
language: [shell]
steps:
- name: Checkout code.
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Check permissions.
run: make check-${{ matrix.language }}-permissions

formatting:
name: Formatting
runs-on: ${{ matrix.architecture }}
Expand Down Expand Up @@ -36,18 +49,6 @@ jobs:
- name: Check linting.
run: nix develop -c make check-${{ matrix.language }}-linting

scripts-permissions:
name: Scripts Permissions
runs-on: ${{ matrix.architecture }}
strategy:
matrix:
architecture: [ubuntu-24.04, ubuntu-24.04-arm]
steps:
- name: Checkout code.
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Check scripts permissions.
run: make check-scripts-permissions

compile:
name: Compile
runs-on: ${{ matrix.architecture }}
Expand Down
8 changes: 4 additions & 4 deletions rust/Makefile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ CARGO_LOCKED := $(if $(CI),--locked,)
.PHONY: default
default: compile

.PHONY: check-shell-permissions
check-shell-permissions:
./ci/check-scripts-permissions.sh

.PHONY: check-rust-formatting
check-rust-formatting:
cargo fmt --all -- --check --config=group_imports=StdExternalCrate
Expand Down Expand Up @@ -62,10 +66,6 @@ fix-python-linting:
check-github-actions-workflows-linting:
actionlint -verbose -color

.PHONY: check-scripts-permissions
check-scripts-permissions:
./ci/check-scripts-permissions.sh

.PHONY: compile
compile:
cargo build --verbose $(CARGO_LOCKED)
Expand Down