Skip to content

Merge branch 'main' of https://github.com/YoRyan/railroads-cli #8

Merge branch 'main' of https://github.com/YoRyan/railroads-cli

Merge branch 'main' of https://github.com/YoRyan/railroads-cli #8

Workflow file for this run

on:
push:
tags:
- v*
permissions:
contents: write
jobs:
release:
name: Release - ${{ matrix.platform.os-name }}
strategy:
matrix:
platform:
- runs-on: ubuntu-latest
target: x86_64-unknown-linux-gnu
executable: railroadscli
name: linux-x86_64-railroadscli
- runs-on: windows-latest
target: x86_64-pc-windows-msvc
executable: railroadscli.exe
name: windows-x86_64-railroadscli.exe
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Cargo Build
uses: houseabsolute/actions-rust-cross@v1
with:
command: build
target: ${{ matrix.platform.target }}
args: --release
strip: true
- name: Rename Asset
run:
mv 'target/${{ matrix.platform.target }}/release/${{ matrix.platform.executable }}' '${{ matrix.platform.name }}'
- name: Upload Asset
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload '${{ github.ref_name }}' '${{ matrix.platform.name }}'