Bump ocidir from 0.2.1 to 0.3.1 #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Check format | |
run: cargo fmt -- --check | |
- name: Run cargo check | |
run: cargo check --locked | |
- name: Run cargo clippy | |
run: cargo clippy -- -D warnings | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: oras-project/setup-oras@v1 | |
with: | |
version: 1.2.0 | |
- name: Run cargo test | |
run: cargo test | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Install cargo-generate-rpm | |
run: cargo install cargo-generate-rpm | |
- name: Build | |
run: cargo build --release | |
- name: Generate RPM package | |
run: cargo generate-rpm | |
release-dry-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Publish dry-run | |
run: cargo publish --dry-run |