Commit c5023cb 1 parent e590654 commit c5023cb Copy full SHA for c5023cb
File tree 4 files changed +39
-25
lines changed
4 files changed +39
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : Linux Build
2
+ runs :
3
+ using : " composite"
4
+ steps :
5
+ - name : Install packages
6
+ shell : bash
7
+ run : sudo apt install -y openssh-client mesa-common-dev xorg-dev libxi-dev libxcursor-dev mingw-w64
8
+ - name : Update submodules
9
+ shell : bash
10
+ run : |
11
+ git submodule init
12
+ git submodule update --remote
13
+ - name : Build linux x86_64
14
+ shell : bash
15
+ run : make
16
+ - name : Build windows x86_64 (cross)
17
+ shell : bash
18
+ run : make cross
19
+
Original file line number Diff line number Diff line change 1
- name : Tophat workflow
1
+ name : Deploy workflow
2
2
on : [push]
3
3
jobs :
4
- windows_build :
5
- runs-on : windows-latest
6
- steps :
7
- - uses : actions/checkout@v2
8
- - uses : ilammy/msvc-dev-cmd@v1
9
- - name : Build with CMake+MSbuild
10
- run : |
11
- git submodule init
12
- git submodule update --remote
13
- ./msbuild.bat
14
-
15
- linux_build :
4
+ deploy :
16
5
runs-on : ubuntu-20.04
17
6
steps :
18
- - uses : actions/checkout@v2
19
- - name : Install packages
20
- run : sudo apt install -y openssh-client mesa-common-dev xorg-dev libxi-dev libxcursor-dev mingw-w64
7
+ - uses : actions/checkout@v3
8
+ - uses : ./.github/actions/build
21
9
- name : Install SSH key
22
10
uses : shimataro/ssh-key-action@v2
23
11
with :
24
12
key : ${{ secrets.SSH_KEY }}
25
13
known_hosts : ${{ secrets.KNOWN_HOSTS }}
26
- - name : Update submodules
27
- run : |
28
- git submodule init
29
- git submodule update --remote
30
- - name : Build linux
31
- run : make
32
- - name : Build windows
33
- run : make cross
34
14
- name : Deploy
35
15
run : |
36
16
rsync tophat [email protected] :www/tophat-web/dl/tophat-linux
Original file line number Diff line number Diff line change
1
+ name : Test workflow
2
+ on :
3
+ push :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ jobs :
8
+ deploy:
9
+ runs-on: ubuntu-20.04
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: ./.github/actions/build
13
+ - run : sudo apt install -y xorg-xinit
14
+ - run : tophat -check
15
+ - run : startx tophat -check
Original file line number Diff line number Diff line change 1
- #include "tophat.h"
1
+ #include "tophat.h"
2
2
const char * th_em_modulesrc [] = {
3
3
"\n"
4
4
"import (\n"
You can’t perform that action at this time.
0 commit comments