2020-01-03 11:44:16 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-01-06 07:47:40 +00:00
|
|
|
- development
|
2020-01-03 11:44:16 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-01-06 07:36:05 +00:00
|
|
|
macos-build:
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
2020-01-03 11:44:16 +00:00
|
|
|
steps:
|
2020-01-03 11:48:11 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-01-03 11:51:50 +00:00
|
|
|
- name: Bootstrap compiler
|
2020-01-06 07:36:05 +00:00
|
|
|
run: .ci/bootstrap.sh osx
|
2020-01-03 12:29:13 +00:00
|
|
|
- name: Compile
|
|
|
|
run: .ci/compile.sh
|
2020-01-06 07:40:15 +00:00
|
|
|
- name: Set deployment SSH key
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
uses: shimataro/ssh-key-action@v1
|
|
|
|
with:
|
|
|
|
private-key: ${{ secrets.SSH_KEY }}
|
|
|
|
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
|
|
|
|
known-hosts: "qb64.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtmlTks7NPQHwvQiW+P2P8voWXfwYD+EuU39ERiaVw5g/lG/6pU1SKdrRBg2AtaPToPgK/nQyaid3sO2aWO00ixiKB3JPJoVp3nRY8YFi/AtVtVot/xh6+39fjP59tMCnMCbXTKjyMWL0kkwzd+OT8wryRZ/EgjK3vk9UGYzxKSr8G/KKV3GBDrJOdpHT2gNUcDFg6HSMvM860ZOF8n6jKRwp7MM0SpptufuQDgj/LhHcqQtFOqkhW9HXNmZR7IPchb5tsUubbPdSLu043B0ir2x5sCkK9V+inZExPg7KwIZ0yRsSv5esgLaBdyf1UToU3LU4ZM1hWjcJsp2fCBRkhw=="
|
|
|
|
config: |
|
|
|
|
Host remote-server
|
|
|
|
HostName qb64.org
|
|
|
|
User m6rosupy1q2t
|
|
|
|
- name: Package and deploy
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: .ci/deploy.sh osx
|
2020-01-06 07:47:40 +00:00
|
|
|
|
|
|
|
linux-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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: githubactions
|
|
|
|
- name: Set deployment SSH key
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
uses: shimataro/ssh-key-action@v1
|
|
|
|
with:
|
|
|
|
private-key: ${{ secrets.SSH_KEY }}
|
|
|
|
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
|
|
|
|
known-hosts: "qb64.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtmlTks7NPQHwvQiW+P2P8voWXfwYD+EuU39ERiaVw5g/lG/6pU1SKdrRBg2AtaPToPgK/nQyaid3sO2aWO00ixiKB3JPJoVp3nRY8YFi/AtVtVot/xh6+39fjP59tMCnMCbXTKjyMWL0kkwzd+OT8wryRZ/EgjK3vk9UGYzxKSr8G/KKV3GBDrJOdpHT2gNUcDFg6HSMvM860ZOF8n6jKRwp7MM0SpptufuQDgj/LhHcqQtFOqkhW9HXNmZR7IPchb5tsUubbPdSLu043B0ir2x5sCkK9V+inZExPg7KwIZ0yRsSv5esgLaBdyf1UToU3LU4ZM1hWjcJsp2fCBRkhw=="
|
|
|
|
config: |
|
|
|
|
Host remote-server
|
|
|
|
HostName qb64.org
|
|
|
|
User m6rosupy1q2t
|
|
|
|
- name: Package and deploy
|
|
|
|
if: github.event_name == 'push'
|
2020-01-06 07:51:53 +00:00
|
|
|
run: .ci/deploy.sh lnx
|
2020-01-06 07:47:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|