Fix release workflow #7
Workflow file for this run
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: | |
branches: [master] | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
extension: "" | |
- os: macos-latest | |
extension: "" | |
- os: windows-latest | |
extension: ".exe" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: cargo fetch | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Run Clippy for Linting | |
if: ${{ github.ref != 'refs/heads/master' }} | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Check Code Formatting | |
if: ${{ github.ref != 'refs/heads/master' }} | |
run: cargo fmt --all -- --check | |
- name: Upload Executable | |
uses: actions/upload-artifact@v4 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
name: task-tracker-cli-${{ matrix.os }} | |
path: target/release/task-tracker-cli${{ matrix.extension }} | |
retention-days: 1 |