-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (81 loc) · 2.53 KB
/
publish.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
name: publish
on:
push:
tags: [ 'v*' ]
jobs:
ubuntu:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: install tools
run: |
sudo apt-get update
sudo apt-get install libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libpango1.0-dev libgl1-mesa-dev libglu1-mesa-dev libgtk-3-bin xdg-utils xvfb -y --no-install-recommends
cargo install --debug cargo-make
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: build and package
run: cargo make --no-workspace ci-ubuntu
- name: upload packages
uses: svenstaro/upload-release-action@v2
with:
file_glob: true
file: target/artifacts/*
arch:
runs-on: ubuntu-22.04
container:
image: archlinux
permissions:
contents: write
steps:
- name: install tools
run: pacman -Syu base-devel rustup git sudo --noconfirm
- name: setup build user
run: useradd builder -m
- name: install rust tools
shell: sudo -u builder bash {0}
run: |
rustup default stable
cargo install --debug cargo-make
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: fix permissions
run: chown -R builder:builder .
- name: install dependencies
run: source package/arch/PKGBUILD && pacman -S ${depends[@]} --noconfirm
- name: build and package
shell: sudo -u builder bash {0}
run: cargo make --no-workspace ci-arch
- name: upload packages
uses: svenstaro/upload-release-action@v2
with:
file_glob: true
file: target/artifacts/*
windows:
runs-on: windows-2022
permissions:
contents: write
steps:
- name: install rust tools
run: cargo install --debug cargo-make
- name: install rcedit
run: curl https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe -Lo C:/Windows/rcedit.exe
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: build and package
run: cargo make --no-workspace ci-windows
- name: upload packages
uses: svenstaro/upload-release-action@v2
with:
file_glob: true
file: target/artifacts/*