Skip to content

Update CI workflows. #28

Update CI workflows.

Update CI workflows. #28

Workflow file for this run

name: Development build
on:
push:
branches:
- "dev/*"
jobs:
clippy:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Lint
run: |
cargo clippy
cargo clippy --release
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: |
cargo test
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
arch:
- {
name: "x86_64",
os: "ubuntu-latest",
target: "x86_64-unknown-linux-gnu",
cross: false,
}
runs-on: ${{ matrix.arch.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: cargo-cache-${{ matrix.arch.target }}
- name: Build
run: |
cargo build --release --target=${{ matrix.arch.target }}
- name: Rename artifact
run: mv target/${{ matrix.arch.target }}/release/tuigreet target/${{ matrix.arch.target }}/release/tuigreet-dev-${{ matrix.arch.name }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: tuigreet-dev-${{ matrix.arch.name }}
path: target/${{ matrix.arch.target }}/release/tuigreet-dev-${{ matrix.arch.name }}