swap todo for println #13
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: Build | |
on: | |
push: | |
tags: | |
- "**" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies (Windows) | |
run: | | |
sudo apt install gcc-mingw-w64-x86-64 | |
- name: Create Artifacts Directory | |
run: | | |
mkdir artifacts | |
- name: Build (Windows) | |
run: | | |
rustup target add x86_64-pc-windows-gnu | |
cargo build --target=x86_64-pc-windows-gnu --release | |
cp target/x86_64-pc-windows-gnu/release/cpm.exe artifacts/ | |
- name: Build (Linux) | |
run: | | |
cargo build --release | |
cp target/release/cpm artifacts/ | |
- name: Create Release | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
replacesArtifacts: true | |
allowUpdates: true | |
artifactErrorsFailBuild: true | |
artifacts: "artifacts/*" |