Skip to content

ci/cd: Attempting automatic release #4

ci/cd: Attempting automatic release

ci/cd: Attempting automatic release #4

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.runner }}
strategy:
fail-fast: false
matrix:
include:
- name: linux-amd64
runner: ubuntu-latest
target: x86_64-unknown-linux-gnu
- name: win-amd64
runner: windows-latest
target: x86_64-pc-windows-msvc
- name: macos-amd64
runner: 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
run: mv "target/${{ matrix.target }}/release/pterocli" "output/pterocli_${{ matrix.target }}" || mv "target/${{ matrix.target }}/release/pterocli.exe" "output/pterocli_${{ matrix.target }}.exe"
with:

Check failure on line 48 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build pterocli

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 48, Col: 7): Unexpected value '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:
files: |
output/pterocli*