Skip to content

dep update

dep update #76

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
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/') && github.event_name == 'push' }}
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
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
run: cargo make upx
- name: upload artifacts
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v4
with:
name: Artifacts-${{ runner.os }}
path: artifacts
retention-days: 5
release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' }}
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:
generate_release_notes: true
draft: true
files: |
artifacts/*