Skip to content

wip: bump gcc

wip: bump gcc #9

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