Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #158 from cgwalters/ci-update
Browse files Browse the repository at this point in the history
Ci update
  • Loading branch information
cgwalters authored Nov 10, 2021
2 parents 703bda8 + d737cf3 commit 0828aa7
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
# Inspired by https://github.com/rust-analyzer/rust-analyzer/blob/master/.github/workflows/ci.yaml
# but tweaked in several ways. If you make changes here, consider doing so across other
# repositories in e.g. ostreedev etc.
name: Rust

permissions:
actions: read

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel

steps:
- uses: actions/checkout@v2
- name: Install deps
run: ./ci/installdeps.sh
- name: Format
run: cargo fmt -- --check -l
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

- uses: actions/checkout@v2
- name: Install deps
run: ./ci/installdeps.sh
- name: Format
run: cargo fmt -- --check -l
# xref containers/containers-image-proxy-rs
- name: Cache Dependencies
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
- name: Build
run: cargo test --no-run
- name: Run tests
run: cargo test -- --nocapture --quiet

0 comments on commit 0828aa7

Please sign in to comment.