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
12 changes: 12 additions & 0 deletions rust/.github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ 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
4 changes: 4 additions & 0 deletions rust/Makefile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ check-rust-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
13 changes: 13 additions & 0 deletions rust/ci/check-scripts-permissions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh

set -o errexit
set -o xtrace

exit_code=0
for script in ci/*.sh; do
if [ -f "$script" ] && [ ! -x "$script" ]; then
exit_code=1
fi
done

exit $exit_code