ci: add build and lint workflows
Some checks are pending
Build / errornowatcher (push) Waiting to run
Lint / Cargo.toml (push) Waiting to run
Lint / Rust (push) Waiting to run
Some checks are pending
Build / errornowatcher (push) Waiting to run
Lint / Cargo.toml (push) Waiting to run
Lint / Rust (push) Waiting to run
This commit is contained in:
37
.github/workflows/build.yaml
vendored
Normal file
37
.github/workflows/build.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Build
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "**.rs"
|
||||
- "Cargo.*"
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
errornowatcher:
|
||||
name: errornowatcher
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install build dependencies
|
||||
run: sudo apt install -y libluajit-5.1-dev mold
|
||||
|
||||
- name: Set up build cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: build-${{ runner.os }}-${{ hashFiles('Cargo.*') }}
|
||||
|
||||
- name: Switch to nightly toolchain
|
||||
run: rustup default nightly
|
||||
|
||||
- name: Build in release mode
|
||||
run: cargo build --release
|
||||
Reference in New Issue
Block a user