blob: 547fe2af4ff173fa92ecb6f958941352830cca37 (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# .github/workflows/release.yml
name: Release (Linux tarball + Windows zip)
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl
- name: Install musl tools
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
- name: Build tarball
run: make tarball
- name: Upload artifact (Linux)
uses: actions/upload-artifact@v4
with:
name: linux-dist
path: |
dist/*.tar.gz
dist/*.buildinfo
dist/*.sha256
if-no-files-found: error
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Run PowerShell build
shell: pwsh
run: ./build.ps1 zipball
- name: Upload artifact (Windows)
uses: actions/upload-artifact@v4
with:
name: windows-dist
path: |
dist/*.zip
dist/*.buildinfo
dist/*.sha256
if-no-files-found: error
release:
runs-on: ubuntu-latest
needs: [build-linux, build-windows]
steps:
- name: Download Linux artifacts
uses: actions/download-artifact@v4
with:
name: linux-dist
path: upload
- name: Download Windows artifacts
uses: actions/download-artifact@v4
with:
name: windows-dist
path: upload
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
prerelease: ${{ contains(github.ref_name, '-') }}
files: |
upload/*.tar.gz
upload/*.zip
upload/*.sha256
upload/*.buildinfo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|