Skip to content

CI: Run on macOS 12 for gcc 9 #36

CI: Run on macOS 12 for gcc 9

CI: Run on macOS 12 for gcc 9 #36

name: mips_linux_gcc
on: [push, pull_request]
jobs:
mips_linux_gcc:
runs-on: ubuntu-20.04
timeout-minutes: 10
env:
CC: /opt/mips-linux-musl-cross/bin/mips-linux-musl-gcc
steps:
- uses: actions/checkout@v3
- name: Retrieve test compression corpus
run: |
git clone https://github.com/ariya/compression-corpus.git
cd compression-corpus
cd enwik
unzip enwik8.zip
- run: sudo apt-get -y -qq update
- run: sudo apt install -y qemu-user
- name: Prepare cross-compiler
run: |
curl -O http://musl.cc/mips-linux-musl-cross.tgz
tar xzf mips-linux-musl-cross.tgz -C /opt
- name: Verify compiler version
run: /opt/mips-linux-musl-cross/bin/mips-linux-musl-gcc --version
- name: Perform round-trip tests
run: |
cd tests
make test_roundtrip CFLAGS=-static
file ./test_roundtrip
qemu-mips ./test_roundtrip
- name: 'Build and run example: 6pack and 6unpack'
run: |
cd examples
make CFLAGS=-static
qemu-mips ./6pack -v
qemu-mips ./6pack ../compression-corpus/enwik/enwik8.txt archive.6pk
qemu-mips ./6unpack -v
qemu-mips ./6unpack archive.6pk