-
Notifications
You must be signed in to change notification settings - Fork 84
41 lines (38 loc) · 1.25 KB
/
ppc64_linux_gcc.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: ppc64_linux_gcc
on: [push, pull_request]
jobs:
ppc64_linux_gcc:
runs-on: ubuntu-20.04
timeout-minutes: 10
env:
CC: /opt/powerpc64-linux-musl-cross/bin/powerpc64-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/powerpc64-linux-musl-cross.tgz
tar xzf powerpc64-linux-musl-cross.tgz -C /opt
- name: Verify compiler version
run: /opt/powerpc64-linux-musl-cross/bin/powerpc64-linux-musl-gcc --version
- name: Perform round-trip tests
run: |
cd tests
make test_roundtrip CFLAGS=-static
file ./test_roundtrip
qemu-ppc64 ./test_roundtrip
- name: 'Build and run example: 6pack and 6unpack'
run: |
cd examples
make CFLAGS=-static
qemu-ppc64 ./6pack -v
qemu-ppc64 ./6pack ../compression-corpus/enwik/enwik8.txt archive.6pk
qemu-ppc64 ./6unpack -v
qemu-ppc64 ./6unpack archive.6pk