2020-01-03 11:44:16 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- githubactions
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-01-03 11:48:11 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-01-03 11:51:50 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: sudo apt update && sudo apt install libglu1-mesa-dev libncurses-dev
|
|
|
|
- name: Bootstrap compiler
|
2020-01-03 11:44:16 +00:00
|
|
|
run: .ci/bootstrap.sh
|
2020-01-03 12:29:13 +00:00
|
|
|
- name: Compile
|
|
|
|
run: .ci/compile.sh
|
2020-01-04 11:18:31 +00:00
|
|
|
- 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
|