-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (51 loc) · 1.43 KB
/
build.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
name: Rust Builds
on:
push:
branches: [ "main" ]
paths-ignore:
- 'custom_backends/**'
- 'dev-scripts/**'
- 'icon/**'
- 'docs_templates/**'
- 'tests/**'
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup ATK
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install librust-atk-dev libgtk-3-dev
- name: Build with cargo
run: cargo build -r --all-features
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'windows')
with:
name: installer (Windows)
path: ./target/release/installer.exe
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: installer (Linux)
path: ./target/release/installer
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'windows')
with:
name: weather (Windows)
path: ./target/release/weather.exe
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: weather (Linux)
path: ./target/release/weather