-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.12 KB
/
pdp1-playground.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: PDP-1 Playground
on: [push]
jobs:
Test-Toolchain:
runs-on: ubuntu-latest
steps:
- name: Checkout pdp1-playground
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Checkout submodules
run: |
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --force --depth=1 --recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git build-essential flex bison texinfo libgmp3-dev libmpfr-dev libmpc-dev simh
- name: Build binutils-gdb for PDP-1
run: |
cd pdp1-binutils
./configure --target=pdp1-elf --disable-sim
make -j $(nproc)
make install
- name: Build gcc for PDP-1
run: |
cd pdp1-gcc
./configure --target=pdp1-elf --enable-languages=c --disable-bootstrap
make -j $(nproc) all-gcc
# todo: why does this fail?
make install || true
- name: Build and run asm-print-x
run: |
cd asm-print-x
make run