Skip to content

Commit

Permalink
add linux ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed May 13, 2024
1 parent 3b6fb81 commit 763ed42
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: linux

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
strategy:
fail-fast: false
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v1
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
profile: "minimal"
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
uses: actions/cache@v1
with:
path: "~/.cargo/registry"
key: "ubuntu-${{ hashFiles('Cargo.toml') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v1
with:
path: "~/.cargo/git"
key: "ubuntu-${{ hashFiles('Cargo.toml') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v1
with:
path: "target"
key: "ubuntu-${{ hashFiles('Cargo.toml') }}-cargo-build-target"
- name: Check formatting
run: cargo fmt --all -- --check
- name: Build
run: cargo build --all --release
- name: Test
run: cargo test --all

0 comments on commit 763ed42

Please sign in to comment.