-
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1.17 KB
/
release-binaries.yml
File metadata and controls
46 lines (38 loc) · 1.17 KB
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
39
40
41
42
43
44
45
46
name: Release Binaries
on:
release:
types: [published]
permissions:
contents: write
jobs:
build-cli:
name: Build CLI
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
extension: ""
- os: windows-latest
target: x86_64-pc-windows-msvc
extension: ".exe"
- os: macos-latest
target: x86_64-apple-darwin
extension: ""
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Build
run: cargo build -p cargo-rustapi --release --target ${{ matrix.target }}
- name: Rename and Pack
shell: bash
run: |
cp target/${{ matrix.target }}/release/cargo-rustapi${{ matrix.extension }} cargo-rustapi-${{ matrix.target }}${{ matrix.extension }}
- name: Upload Release Asset
uses: softprops/action-gh-release@v3
with:
files: cargo-rustapi-${{ matrix.target }}${{ matrix.extension }}