-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (36 loc) · 976 Bytes
/
release.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
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
name: build
runs-on: ubuntu-latest
container: rust:bookworm
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --target ${{ matrix.target }} --release --target-dir /tmp
- name: Copy assets into upload dir
run: cp --archive --verbose templates/verify.html /tmp/${{ matrix.target }}/release/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: |
/tmp/${{ matrix.target }}/release/curite
/tmp/${{ matrix.target }}/release/verify.html