mirror of
https://github.com/PDP-10/its.git
synced 2026-01-13 15:27:28 +00:00
32 lines
749 B
YAML
32 lines
749 B
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
build:
|
|
environment: Deploy
|
|
runs-on: ${{matrix.os}}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-18.04]
|
|
emulator: [simh, klh10, pdp10-ka, pdp10-kl]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install dependencies
|
|
env:
|
|
EMULATOR: ${{matrix.emulator}}
|
|
if: ${{runner.os == 'Linux'}}
|
|
run: sh -ex build/dependencies.sh install_linux
|
|
- name: Build
|
|
run: make check-dirs all EMULATOR=${{matrix.emulator}}
|
|
- name: Deploy
|
|
if: github.ref == 'refs/heads/master'
|
|
env:
|
|
SECRET: ${{secrets.SECRET}}
|
|
EMULATOR: ${{matrix.emulator}}
|
|
run: sh build/deploy.sh
|