forked from versotile-org/verso
-
Notifications
You must be signed in to change notification settings - Fork 0
157 lines (126 loc) · 4.45 KB
/
publish_nightly.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: Continuous Deployment
on:
push:
branches:
- "*"
schedule:
- cron: "0 0 * * *"
jobs:
draft:
runs-on: ubuntu-latest
environment: "Init Workflow"
steps:
- uses: actions/checkout@v4
- name: create draft release
uses: crabnebula-dev/[email protected]
with:
command: release draft test-verso 0.0.1 --framework packager
api-key: ${{ secrets.CN_API_KEY }}
build-linux:
name: Build [linux]
needs: draft
runs-on: ubuntu-latest # We may want this to be older for wider libc compatibility
environment: "Init Workflow"
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install Rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache: true
- name: Set env
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install build-essential python3-pip ccache clang cmake curl \
g++ git gperf libdbus-1-dev libfreetype6-dev libgl1-mesa-dri \
libgles2-mesa-dev libglib2.0-dev libgstreamer-plugins-base1.0-dev \
gstreamer1.0-plugins-good libgstreamer-plugins-good1.0-dev \
gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-dev \
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-base \
libgstreamer-plugins-base1.0-dev gstreamer1.0-libav \
libgstrtspserver-1.0-dev gstreamer1.0-tools libges-1.0-dev \
libharfbuzz-dev liblzma-dev libunwind-dev libunwind-dev libvulkan1 \
libx11-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
libxmu-dev libxmu6 libegl1-mesa-dev llvm-dev m4 xorg-dev
- name: Install Cargo Packager
run: cargo install cargo-packager --locked
- name: Build packager app
run: cargo packager --release
- name: Move assets to workdir
run: |
mv target/release/* .
- name: upload assets
uses: crabnebula-dev/[email protected]
with:
command: release upload test-verso 0.0.1 --framework packager
api-key: ${{ secrets.CN_API_KEY }}
build-windows:
name: Build [windows]
needs: draft
runs-on: windows-latest
environment: "Init Workflow"
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install Rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache: true
- name: Install scroop
uses: MinoruSekine/setup-scoop@v3
- name: Install dependencies
run: scoop install git python llvm cmake curl
- name: Install Cargo Packager
run: cargo install cargo-packager --locked
- name: Build packager app
run: cargo packager --release
- name: Move assets to workdir
run: |
mv target/release/* .
- name: upload assets
uses: crabnebula-dev/[email protected]
with:
command: release upload test-verso 0.0.1 --framework packager
api-key: ${{ secrets.CN_API_KEY }}
build-macos:
name: Build [macos]
needs: draft
runs-on: macos-latest
environment: "Init Workflow"
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install Rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache: true
- name: Install dependencies
run: brew install cmake pkg-config
- name: Install Cargo Packager
run: cargo install cargo-packager --locked
- name: Build packager app
run: cargo packager --release
- name: Move assets to workdir
run: |
mv target/release/* .
- name: upload assets
uses: crabnebula-dev/[email protected]
with:
command: release upload test-verso 0.0.1 --framework packager
api-key: ${{ secrets.CN_API_KEY }}
publish:
needs: [build-linux, build-windows, build-macos]
runs-on: ubuntu-latest
environment: "Init Workflow"
steps:
- uses: actions/checkout@v4
- name: publish release
uses: crabnebula-dev/[email protected]
with:
command: release publish test-verso 0.0.1 --framework packager
api-key: ${{ secrets.CN_API_KEY }}