Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub build workflow #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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