-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (119 loc) · 3.79 KB
/
package.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
name: Validate Merge
on:
push:
branches:
- trunk
jobs:
package-win:
name: Package Windows systems
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Build Rust Code
run: cargo build --release --all
- name: Build Packages
run: |
cd installer-scripts/win/
dotnet tool install --global wix
wix extension add WiXToolset.UI.wixext
wix extension add WiXToolset.Util.wixext
wix build sprig.wxs -ext WiXToolset.Util.wixext -ext WiXToolset.UI.wixext -defaultcompressionlevel high -arch "x64" -bindpath "../../"
- uses: actions/upload-artifact@v3
with:
name: sprig_amd64.msi
path: installer-scripts/win/sprig.msi
- uses: actions/upload-artifact@v3
with:
name: sprig_amd64.wixpdb
path: installer-scripts/win/sprig.wixpdb
- uses: actions/upload-artifact@v3
with:
name: sprig-target-directory-win
path: |
target/release/
!target/release/.fingerprint
!target/release/build
!target/release/deps
!target/release/examples
!target/release/incremental
package-osx:
name: Package Mac OS X systems
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Build Rust Code
run: cargo build --release --all
- name: Build Packages
run: |
cd installer-scripts/osx/
./package.sh
- uses: actions/upload-artifact@v3
with:
name: sprig_amd64.dist
path: installer-scripts/osx/sprig.dist
- uses: actions/upload-artifact@v3
with:
name: sprig_amd64.pkg
path: installer-scripts/osx/sprig.pkg
- uses: actions/upload-artifact@v3
with:
name: sprig-target-directory-osx
path: |
target/release/
!target/release/.fingerprint
!target/release/build
!target/release/deps
!target/release/examples
!target/release/incremental
package-unix:
name: Package Unix systems
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install NFPM
run: |
echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list
sudo apt update
sudo apt install nfpm -y
- name: Build Rust Code
run: cargo build --release --all
- name: Build Packages
run: |
cd installer-scripts/unix/
nfpm package -p deb
nfpm package -p rpm
nfpm package -p apk
nfpm package -p archlinux
- uses: actions/upload-artifact@v3
with:
name: sprig_amd64.deb
path: installer-scripts/unix/sprig_0.0.1_amd64.deb
- uses: actions/upload-artifact@v3
with:
name: sprig_amd64.rpm
path: installer-scripts/unix/sprig-0.0.1-1.x86_64.rpm
- uses: actions/upload-artifact@v3
with:
name: sprig_amd64.apk
path: installer-scripts/unix/sprig_0.0.1_x86_64.apk
- uses: actions/upload-artifact@v3
with:
name: sprig_amd64.pkg.tar.zst
path: installer-scripts/unix/sprig-0.0.1-1-x86_64.pkg.tar.zst
- uses: actions/upload-artifact@v3
with:
name: sprig-target-directory-unix
path: |
target/release/
!target/release/.fingerprint
!target/release/build
!target/release/deps
!target/release/examples
!target/release/incremental