-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (39 loc) · 1.03 KB
/
rust.yml
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
name: Test build releases
on:
pull_request:
push:
jobs:
build-linux:
name: Build x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release
- name: Archive Release
uses: vimtor/[email protected]
with:
files: target/release/wallet
dest: target/release/wallet-daemon_${{github.ref_name}}_x86_64-unknown-linux-gnu.zip
build:
name: Build ${{ matrix.target }}
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-apple-darwin
archive: zip
steps:
- name: Compile and release
- uses: actions/checkout@v4
- uses: rust-build/[email protected]
with:
RUSTTARGET: ${{ matrix.target }}
UPLOAD_MODE: "none"
SRC_DIR: src
ARCHIVE_TYPES: ${{ matrix.archive }}