-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (90 loc) · 2.38 KB
/
main.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
name: "main"
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: write
jobs:
maccompile:
name: Compile EfiToggler for macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Compile CLI
run: |
cd efitoggler
mkdir dist
dart pub get
dart compile exe bin/efitoggler.dart -o efitoggler
mv efitoggler dist
- uses: actions/upload-artifact@v4
with:
name: bin-efitoggler
path: efitoggler/dist
linuxcompile:
needs: maccompile
name: Compile all linux utilites
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Compile Apps
run: |
mkdir rsyncer/dist
mkdir ext4_optimizer/dist
mkdir usb_manager/dist
cd rsyncer
dart pub get
dart compile exe bin/rsyncer.dart -o rsyncer
mv rsyncer dist
cd ../ext4_optimizer
dart pub get
dart compile exe bin/ext4_optimizer.dart -o ext4_optimizer
mv ext4_optimizer dist
cd ../usb_manager
dart pub get
dart compile exe bin/usb_manager.dart -o usb_manager
mv usb_manager dist
- uses: actions/upload-artifact@v4
with:
name: bin-rsyncer
path: rsyncer/dist
- uses: actions/upload-artifact@v4
with:
name: bin-ext4_optimizer
path: ext4_optimizer/dist
- uses: actions/upload-artifact@v4
with:
name: bin-usb_manager
path: usb_manager/dist
release:
needs: linuxcompile
name: Release to Repository
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: bin-efitoggler
path: bin-ef
- uses: actions/download-artifact@v4
with:
name: bin-rsyncer
path: bin-rsy
- uses: actions/download-artifact@v4
with:
name: bin-ext4_optimizer
path: bin-ext
- uses: actions/download-artifact@v4
with:
name: bin-usb_manager
path: bin-usb
- uses: softprops/action-gh-release@v1
with:
draft: true
files: bin-*/*