Skip to content

Commit

Permalink
Create rust_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmatthis committed Apr 10, 2024
1 parent 7c6b46d commit a729f4e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/rust_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Rust - Release on Tag

on:
push:
tags:
- '*'

jobs:
publish:
name: Release for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: cellular-automaton-traffic-simulator
asset_name: cellular-automaton-traffic-simulator-linux-amd64
- os: windows-latest
artifact_name: Ccellular-automaton-traffic-simulator.exe
asset_name: cellular-automaton-traffic-simulator-windows-amd64
- os: macos-latest
artifact_name: cellular-automaton-traffic-simulator
asset_name: cellular-automaton-traffic-simulator-macos-amd64

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --locked
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}

0 comments on commit a729f4e

Please sign in to comment.