-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 859 Bytes
/
release.yml
File metadata and controls
38 lines (31 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release
on:
push:
tags: ['v*.*.*']
permissions:
contents: write
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
ext: ''
- os: windows-latest
target: x86_64-pc-windows-msvc
ext: '.exe'
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- run: cargo build --release --target ${{ matrix.target }}
- run: |
mkdir -p dist
cp target/${{ matrix.target }}/release/parch${{ matrix.ext }} dist/parch${{ matrix.ext }}
shell: bash
- uses: softprops/action-gh-release@v2
with:
files: dist/parch${{ matrix.ext }}