Skip to content

fix artifacts build #63

fix artifacts build

fix artifacts build #63

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache@v4
with:
path: |
./target
~/.cargo
key: ci-${{ runner.os }}-${{ hashFiles('./Cargo.lock') }}
restore-keys: |
ci-${{ runner.os }}-${{ hashFiles('./Cargo.lock') }}
ci-${{ runner.os }}-
- name: Test
run: |
cargo install --debug cargo-make
cargo make ci
- name: Build
run: cargo make upx
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts
retention-days: 5
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: build
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: ./artifacts
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
artifacts/*