Skip to content

Default Rust's pipeline was added #9

Default Rust's pipeline was added

Default Rust's pipeline was added #9

Workflow file for this run

name: Rust CI/CD Pipeline
on:
push:
branches: [ "master" ]
types: [ edited ]
pull_request:
branches: [ "master" ]
types: [ opened, synchronize ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-14, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
- name: Copy release binary to root
shell: bash
run: |
pwd
if [[ -f "target/release/singen" ]]; then
cp target/release/singen .
elif [[ -f "target/release/singen.exe" ]]; then
cp target/release/singen .
else
echo "No binary to copy for this OS."
fi
- name: Compress tar.gz
uses: ksm2/archive-action@v1
with:
name: "${{ env.FILENAME }}"
format: "tar.gz"
include: "{singen,singen.exe,README.md}"
- name: Compress zip
uses: ksm2/archive-action@v1
with:
name: "${{ env.FILENAME }}"
format: "zip"
include: "{rapidrecast,rapidrecast.exe,README.md,LICENSE}"
- name: Create or Update Release
env:
VERSION: ${{ needs.prepare-release.outputs.rr_cargo_version }}
WORKFLOW_GIT_TAG: ${{ needs.prepare-release.outputs.workflow_git_tag}}
uses: ncipollo/release-action@v1
with:
artifacts: "${{ env.FILENAME }}.tar.gz,${{ env.FILENAME }}.zip"
allowUpdates: 'true'
generateReleaseNotes: 'true'
token: ${{ secrets.RELEASE_TOKEN }}
tag: ${{ env.WORKFLOW_GIT_TAG }}