Skip to content

Use -r to install from gh action artifact #266

Use -r to install from gh action artifact

Use -r to install from gh action artifact #266

Workflow file for this run

name: Rust Build
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache rust target files
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
save-always: true
- name: Install sass
run: sudo npm install -g sass
- name: Run tests
run: cargo test --verbose --all-targets --locked
- name: Clippy
run: cargo clippy --verbose --no-deps --all-targets --locked
- name: Build
run: cargo build --bin=server --release --locked --verbose
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-output
path: |
target/release/server
public/
if-no-files-found: error