Skip to content

feat: added --version flag #32

feat: added --version flag

feat: added --version flag #32

Workflow file for this run

name: Check
on:
pull_request:
push:
branches:
- "main"
jobs:
check:
name: Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-22.04
- os: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: rust-toolchain
uses: dtolnay/rust-toolchain@stable
- name: "`cargo check`"
run: cargo check --all-targets --all-features
- uses: cargo-bins/cargo-binstall@main
- name: "Install `cargo-deny`"
run: "cargo binstall -y cargo-deny"
- name: "`cargo deny`"
run: cargo deny check
- name: "`cargo clippy`"
run: cargo clippy --workspace --all-targets --all-features
- name: "`cargo test`"
run: cargo test
build:
needs: [check]
name: Build for ${{ matrix.target }}
if: github.repository_owner == 'nikarh'
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-22.04
- target: aarch64-unknown-linux-gnu
os: ubuntu-22.04
- target: x86_64-unknown-linux-musl
os: ubuntu-22.04
- target: aarch64-unknown-linux-musl
os: ubuntu-22.04
- target: x86_64-apple-darwin
os: macos-14
- target: aarch64-apple-darwin
os: macos-14
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
if: startsWith(matrix.os, 'ubuntu') && !contains(matrix.target, '-musl')
- uses: taiki-e/install-action@cross
if: contains(matrix.target, '-musl')
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: env-secrets
include: LICENSE-MIT,LICENSE-APACHE,CHANGELOG.md,README.md
target: ${{ matrix.target }}
tar: all
archive: env-secrets-$target-$tag
token: ${{ secrets.GITHUB_TOKEN }}
dry-run: true