From 24d6cba9e255f2a7e576d00e3889938556edd24b Mon Sep 17 00:00:00 2001 From: gdm85 Date: Sun, 22 May 2022 12:01:06 +0200 Subject: [PATCH] GitHub build workflow --- .github/workflows/main.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..82fcf5e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-linux: + strategy: + # Don't abort runners if a single one fails + fail-fast: false + matrix: + ## ubuntu-18.04 does not work because of a gzip decompression issue + os: [ubuntu-20.04, ubuntu-22.04] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: | + DEPS=lib32ncurses-dev + if [[ "${{ matrix.os }}" = "ubuntu-18.04" ]]; then + DEPS=lib32ncurses5-dev + fi + sudo apt-get install -y build-essential gcc-multilib $DEPS cpio file wget texinfo + + - name: Cache downloaded Lotus 1-2-3 IMG files + uses: actions/cache@v3 + with: + key: l123-archive + path: | + ~/*.IMG + + - name: Cache built binutils files + uses: actions/cache@v3 + with: + key: ${{ matrix.os }}-binutils + path: | + ~/ld + ~/objdump + ~/objcopy + + - name: Build + run: docker/build-from-container.sh