Skip to content

Commit

Permalink
fixed test workflow producing unusually large artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Apr 3, 2024
1 parent 0bbc600 commit fd9f940
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,33 @@ name: Test Builds

on:
push:
branches:
- main
branches: [main]

env:
CARGO_TERM_COLOR: always

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
build-win:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: cargo build --release --verbose

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: resfetch-win
path: target/release/deps/resfetch.exe
retention-days: 1

build-unix:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}

Expand All @@ -25,11 +37,11 @@ jobs:
uses: actions/checkout@v4

- name: Build
run: cargo build --verbose
run: cargo build --release --verbose

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-target
path: target/debug/*
name: resfetch-${{ matrix.os }}
path: target/release/resfetch
retention-days: 1

0 comments on commit fd9f940

Please sign in to comment.