2020-01-03 11:44:16 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-01-06 07:47:40 +00:00
|
|
|
- development
|
2021-01-30 00:13:11 +00:00
|
|
|
- ci-test
|
2020-01-03 11:44:16 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-01-19 18:07:25 +00:00
|
|
|
linux-build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-01-30 00:24:31 +00:00
|
|
|
if: "contains(github.event.head_commit.message, 'ci-skip')"
|
2020-01-03 11:44:16 +00:00
|
|
|
steps:
|
2020-01-03 11:48:11 +00:00
|
|
|
- uses: actions/checkout@v2
|
2021-01-30 00:24:31 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: sudo apt update && sudo apt install libglu1-mesa-dev libncurses-dev
|
|
|
|
- name: Bootstrap compiler
|
|
|
|
run: .ci/bootstrap.sh lnx
|
|
|
|
- name: Compile
|
|
|
|
run: .ci/compile.sh
|
|
|
|
- name: Update source
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: .ci/update-source.sh
|
|
|
|
- name: Push to repository
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
uses: ad-m/github-push-action@19caa5c351f47734055690f7d01aaaef2f9114d5
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
branch: development
|
2020-01-06 07:40:15 +00:00
|
|
|
- name: Set deployment SSH key
|
|
|
|
if: github.event_name == 'push'
|
2021-01-28 18:14:58 +00:00
|
|
|
uses: shimataro/ssh-key-action@v2.1.0
|
2020-01-06 07:40:15 +00:00
|
|
|
with:
|
2021-01-28 18:14:58 +00:00
|
|
|
key: ${{ secrets.SSH_KEY }}
|
2021-01-30 00:13:11 +00:00
|
|
|
# "qb64.org ssh-rsa AAAA" etc.
|
|
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
2020-01-06 07:40:15 +00:00
|
|
|
config: |
|
|
|
|
Host remote-server
|
|
|
|
HostName qb64.org
|
|
|
|
User m6rosupy1q2t
|
|
|
|
- name: Package and deploy
|
|
|
|
if: github.event_name == 'push'
|
2020-01-19 18:07:25 +00:00
|
|
|
run: .ci/deploy.sh lnx
|
2020-01-06 07:47:40 +00:00
|
|
|
|
2020-01-19 18:07:25 +00:00
|
|
|
macos-build:
|
|
|
|
runs-on: macos-latest
|
2021-01-30 00:15:01 +00:00
|
|
|
if: "contains(github.event.head_commit.message, 'ci-skip')"
|
2020-01-06 07:47:40 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Bootstrap compiler
|
2020-01-19 18:07:25 +00:00
|
|
|
run: .ci/bootstrap.sh osx
|
2020-01-06 07:47:40 +00:00
|
|
|
- name: Compile
|
|
|
|
run: .ci/compile.sh
|
|
|
|
- name: Set deployment SSH key
|
|
|
|
if: github.event_name == 'push'
|
2021-01-28 18:14:58 +00:00
|
|
|
uses: shimataro/ssh-key-action@v2.1.0
|
2020-01-06 07:47:40 +00:00
|
|
|
with:
|
2021-01-28 18:14:58 +00:00
|
|
|
key: ${{ secrets.SSH_KEY }}
|
2021-01-30 00:13:11 +00:00
|
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
2020-01-06 07:47:40 +00:00
|
|
|
config: |
|
|
|
|
Host remote-server
|
|
|
|
HostName qb64.org
|
|
|
|
User m6rosupy1q2t
|
|
|
|
- name: Package and deploy
|
|
|
|
if: github.event_name == 'push'
|
2020-01-19 18:07:25 +00:00
|
|
|
run: .ci/deploy.sh osx
|
2020-01-06 07:47:40 +00:00
|
|
|
|
2020-01-08 08:35:38 +00:00
|
|
|
windows-x86-build:
|
|
|
|
runs-on: windows-latest
|
2021-01-30 00:15:01 +00:00
|
|
|
if: "contains(github.event.head_commit.message, 'ci-skip')"
|
2020-01-08 08:35:38 +00:00
|
|
|
env:
|
|
|
|
PLATFORM: x86
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Bootstrap compiler
|
|
|
|
run: .ci/bootstrap.bat
|
|
|
|
- name: Compile
|
|
|
|
run: .ci/compile.bat
|
2020-01-08 09:33:09 +00:00
|
|
|
- name: Set deployment SSH key
|
|
|
|
if: github.event_name == 'push'
|
2021-01-28 18:14:58 +00:00
|
|
|
uses: shimataro/ssh-key-action@v2.1.0
|
2020-01-08 09:33:09 +00:00
|
|
|
with:
|
2021-01-28 18:14:58 +00:00
|
|
|
key: ${{ secrets.SSH_KEY }}
|
2021-01-30 00:13:11 +00:00
|
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
2020-01-08 09:33:09 +00:00
|
|
|
config: |
|
|
|
|
Host remote-server
|
|
|
|
HostName qb64.org
|
|
|
|
User m6rosupy1q2t
|
|
|
|
- name: Package and deploy
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: .ci/deploy.bat
|
|
|
|
|
2020-01-08 10:55:08 +00:00
|
|
|
windows-x64-build:
|
|
|
|
runs-on: windows-latest
|
2021-01-30 00:24:31 +00:00
|
|
|
if: "!contains(github.event.head_commit.message, 'ci-skip')"
|
2020-01-08 10:55:08 +00:00
|
|
|
env:
|
|
|
|
PLATFORM: x64
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-01-30 05:26:32 +00:00
|
|
|
- name: Bootstrap compiler
|
|
|
|
run: .ci/bootstrap.bat
|
|
|
|
- name: Compile
|
|
|
|
run: .ci/compile.bat
|
2020-01-08 10:55:08 +00:00
|
|
|
- name: Set deployment SSH key
|
|
|
|
if: github.event_name == 'push'
|
2021-01-28 18:14:58 +00:00
|
|
|
uses: shimataro/ssh-key-action@v2.1.0
|
2020-01-08 10:55:08 +00:00
|
|
|
with:
|
2021-01-28 18:14:58 +00:00
|
|
|
key: ${{ secrets.SSH_KEY }}
|
2021-01-30 00:13:11 +00:00
|
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
2020-01-08 10:55:08 +00:00
|
|
|
config: |
|
|
|
|
Host remote-server
|
|
|
|
HostName qb64.org
|
|
|
|
User m6rosupy1q2t
|
2021-01-30 05:26:32 +00:00
|
|
|
- name: Download
|
|
|
|
run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
|
|
|
|
- name: Extract
|
|
|
|
run: Expand-Archive ngrok.zip
|
|
|
|
- name: Auth
|
|
|
|
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
|
|
|
|
env:
|
|
|
|
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
|
|
|
|
- name: Enable TS
|
|
|
|
run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
|
|
|
|
- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
|
|
|
|
- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
|
|
|
|
- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "alfovmeof" -Force)
|
|
|
|
- name: Create Tunnel
|
|
|
|
run: .\ngrok\ngrok.exe tcp 3389
|
2020-01-08 10:55:08 +00:00
|
|
|
- name: Package and deploy
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: .ci/deploy.bat
|