Skip to content

Fix pipeline missing TARGET #18

Fix pipeline missing TARGET

Fix pipeline missing TARGET #18

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
release:
strategy:
matrix:
target:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macOS-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.target.os }}
env:
TARGET: ${{ matrix.target.target }}
FILE: homer_${GITHUB_REF_NAME}_${TARGET}
steps:
- uses: actions/checkout@v4
- name: Add target
run: rustup target add $TARGET
- name: Build
run: cargo build --release --target $TARGET
- name: Rename binary
run: mv target/$TARGET/release/homer $FILE
- name: Release
uses: softprops/action-gh-release@v2
with:
files: $FILE
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}