This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (59 loc) · 1.74 KB
/
build-and-deploy.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
name: Build
on:
push:
branches: '*'
jobs:
macos_build:
name: macOS build
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- run: brew cask install xquartz
- name: Install Dependencies
run: ./make.py deps
- run: git config --global user.name melvyn2
- name: Build
run: ./make.py build --zip -v
- name: Test
run: ./make.py test
- run: go get github.com/aktau/github-release
- name: Deploy
run: ./make.py deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linux_build:
name: Linux build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: sudo apt-get install xvfb libxkbcommon-x11-0
- run: python3 -m pip install setuptools wheel
- name: Install Dependencies
run: ./make.py deps
- name: Build
run: ./make.py build --zip -v
- name: Test
run: ./make.py test
- run: go get github.com/aktau/github-release
- name: Deploy
run: ./make.py deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
windows_build:
name: Windows build
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- run: python -m pip install wheel
- name: Install Dependencies
run: python make.py deps
- name: Build
run: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && python make.py build --zip -v'
shell: cmd
- name: Test
run: python make.py test
- run: go get github.com/aktau/github-release
- name: Deploy
run: python make.py deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}