-
Notifications
You must be signed in to change notification settings - Fork 25
71 lines (67 loc) · 1.68 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
name: main
on:
push:
pull_request:
jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
show-progress: false
- name: Build
run: |
docker build . -t wslbridge2
docker run --rm wslbridge2 tar -cf - -C /build/bin wslbridge2-backend | tar -xvf -
- name: Upload
uses: actions/upload-artifact@v3
with:
name: wslbridge2-backend
path: wslbridge2-backend
frontend-msys2:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
show-progress: false
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
install: gcc make
- name: Build
shell: msys2 {0}
run: |
make RELEASE=1
- name: Upload
uses: actions/upload-artifact@v3
with:
name: wslbridge2-msys2
path: bin/wslbridge2.exe
frontend-cygwin:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
show-progress: false
- name: Install cygwin
uses: cygwin/cygwin-install-action@master
with:
platform: x86_64
packages: gcc-g++ make
- name: Build
shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}'
run: |
make RELEASE=1
- name: Upload
uses: actions/upload-artifact@v3
with:
name: wslbridge2-cygwin
path: bin/wslbridge2.exe