This commit is contained in:
Robin Appelman 2026-08-13 01:50:53 +02:00
commit db71d66600
5 changed files with 48 additions and 46 deletions

View file

@ -2,17 +2,17 @@
Thanks for taking the time !
Please ensure that some basic checks are passed before creating this Pull Request:
Please ensure that some basic checks are passed before creating this Pull
Request:
- [ ] Cargo Format
- Run `cargo fmt` on the project.
- Run `cargo fmt` on the project.
- [ ] Clippy lints
- Run `cargo clippy -- -Dwarnings` on the project to check for suggestions
- Run `cargo clippy --fix` to let clippy apply the suggestions itself, if any.
- Run `cargo clippy -- -Dwarnings` on the project to check for suggestions
- Run `cargo clippy --fix` to let clippy apply the suggestions itself, if any.
This can be tiresome for frequent contributors, so it might would be better if
you used a git pre-push hook as mentioned in the [readme](readme.md#hacking).
The [Build CI](.github/workflow/buildci.yaml) will also check whether the project can be compiled and
cross-compiled to arm64 without any errors.
The [Build CI](.github/workflow/buildci.yaml) will also check whether the
project can be compiled and cross-compiled to arm64 without any errors.

View file

@ -14,24 +14,23 @@ jobs:
- name: Clippy
run: cargo clippy -- -Dwarnings
build:
needs: pre-build-checks
strategy:
matrix:
matrix:
arch: [amd64, arm64]
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Setup cross compiling
run: |
source ./.github/buildci.sh
setup_cross_compiling ${{ matrix.arch }}
- name: Build
- name: Build
run: |
[ $GITHUB_REF_TYPE = "branch" ] && \
export __REF=${GITHUB_SHA::7} || \