Skip to content

ci/cd: Attempting automatic release #6

ci/cd: Attempting automatic release

ci/cd: Attempting automatic release #6

Workflow file for this run

name: Build pterocli
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
PROJECT_NAME: pterocli
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: linux-amd64
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- name: win-amd64
os: windows-latest
target: x86_64-pc-windows-msvc
- name: macos-amd64
os: macos-latest
target: x86_64-apple-darwin
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "${{ matrix.target }}"
- name: Setup Cache
uses: Swatinem/rust-cache@v2
- name: Build Binary
run: cargo build --verbose --locked --release --target ${{ matrix.target }}
- name: Upload ${{ matrix.target }} pterocli artifact
uses: actions/upload-artifact@v4
with:
name: pterocli-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/pterocli.exe
target/${{ matrix.target }}/release/pterocli
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: |
output/pterocli*