This commit is contained in:
Sean OMeara 2022-12-14 17:38:12 +01:00
commit 23de576e9c

View file

@ -4,40 +4,40 @@ jobs:
build_ubuntu: build_ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: gitconfig - name: gitconfig
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
git config --global core.eol lf git config --global core.eol lf
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install Rust - name: Install Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
target: aarch64-apple-darwin target: aarch64-apple-darwin
override: true override: true
components: rustfmt, clippy components: rustfmt, clippy
- name: Set up cargo cache - name: Set up cargo cache
uses: actions/cache@v3 uses: actions/cache@v3
continue-on-error: false continue-on-error: false
with: with:
path: | path: |
~/.cargo/bin/ ~/.cargo/bin/
~/.cargo/registry/index/ ~/.cargo/registry/index/
~/.cargo/registry/cache/ ~/.cargo/registry/cache/
~/.cargo/git/db/ ~/.cargo/git/db/
target/ target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo- restore-keys: ${{ runner.os }}-cargo-
- name: Lint - name: Lint
run: | run: |
cargo fmt --all -- --check cargo fmt --all -- --check
cargo clippy -- -D warnings cargo clippy -- -D warnings
- name: make - name: make
run: make run: make
- name: selftest - name: selftest
run: make selftest run: make selftest
# build_macos: # build_macos:
# runs-on: macos-latest # runs-on: macos-latest