-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marek Maškarinec <[email protected]>
- Loading branch information
1 parent
e590654
commit afdd526
Showing
4 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Linux Build | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install packages | ||
shell: bash | ||
run: sudo apt install -y openssh-client mesa-common-dev xorg-dev libxi-dev libxcursor-dev mingw-w64 | ||
- name: Update submodules | ||
shell: bash | ||
run: | | ||
git submodule init | ||
git submodule update --remote | ||
- name: Build linux x86_64 | ||
shell: bash | ||
run: make | ||
- name: Build windows x86_64 (cross) | ||
shell: bash | ||
run: make cross | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,16 @@ | ||
name: Tophat workflow | ||
name: Deploy workflow | ||
on: [push] | ||
jobs: | ||
windows_build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Build with CMake+MSbuild | ||
run: | | ||
git submodule init | ||
git submodule update --remote | ||
./msbuild.bat | ||
linux_build: | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install packages | ||
run: sudo apt install -y openssh-client mesa-common-dev xorg-dev libxi-dev libxcursor-dev mingw-w64 | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/build | ||
- name: Install SSH key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{ secrets.SSH_KEY }} | ||
known_hosts: ${{ secrets.KNOWN_HOSTS }} | ||
- name: Update submodules | ||
run: | | ||
git submodule init | ||
git submodule update --remote | ||
- name: Build linux | ||
run: make | ||
- name: Build windows | ||
run: make cross | ||
- name: Deploy | ||
run: | | ||
rsync tophat [email protected]:www/tophat-web/dl/tophat-linux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Test workflow | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/build | ||
- run: tophat -check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "tophat.h" | ||
#include "tophat.h" | ||
const char *th_em_modulesrc[] = { | ||
"\n" | ||
"import (\n" | ||
|