Skip to content

Update github actions #326

Update github actions

Update github actions #326

Workflow file for this run

name: build
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os}}-cargo-
- name: Cache build artifacts
uses: actions/cache@v4
continue-on-error: true
with:
path: target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }}
- name: Cache downloaded toolchain(s)
uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.rustup
key: ${{ runner.os }}-rustup-${{ hashFiles('rust-toolchain.toml') }}
- name: Build
run: cargo build
- name: Package
run: cargo xtask package --out file.zip --board lpc55xpresso