ldflags: -static
- name: Ubuntu GCC S390X DFLTCC
- os: z15
- compiler: gcc
+ os: ${{ github.repository == 'zlib-ng/zlib-ng' && 'z15' || 'ubuntu-latest' }}
+ compiler: ${{ github.repository == 'zlib-ng/zlib-ng' && 'gcc' || 's390x-linux-gnu-gcc' }}
configure-args: --warn --static --with-dfltcc-deflate --with-dfltcc-inflate
+ chost: ${{ github.repository != 'zlib-ng/zlib-ng' && 's390x-linux-gnu' || '' }}
+ packages: ${{ github.repository != 'zlib-ng/zlib-ng' && 'qemu qemu-user gcc-s390x-linux-gnu g++-s390x-linux-gnu libc-dev-s390x-cross' || '' }}
+ cflags: ${{ github.repository != 'zlib-ng/zlib-ng' && '-static' || '' }}
+ ldflags: ${{ github.repository != 'zlib-ng/zlib-ng' && '-static' || '' }}
- name: Ubuntu GCC S390X DFLTCC Compat
- os: z15
- compiler: gcc
+ os: ${{ github.repository == 'zlib-ng/zlib-ng' && 'z15' || 'ubuntu-latest' }}
+ compiler: ${{ github.repository == 'zlib-ng/zlib-ng' && 'gcc' || 's390x-linux-gnu-gcc' }}
configure-args: --warn --zlib-compat --static --with-dfltcc-deflate --with-dfltcc-inflate
+ chost: ${{ github.repository != 'zlib-ng/zlib-ng' && 's390x-linux-gnu' || '' }}
+ packages: ${{ github.repository != 'zlib-ng/zlib-ng' && 'qemu qemu-user gcc-s390x-linux-gnu g++-s390x-linux-gnu libc-dev-s390x-cross' || '' }}
+ cflags: ${{ github.repository != 'zlib-ng/zlib-ng' && '-static' || '' }}
+ ldflags: ${{ github.repository != 'zlib-ng/zlib-ng' && '-static' || '' }}
- name: Ubuntu Emscripten WASM32
os: ubuntu-latest
- name: Add ubuntu mirrors
if: runner.os == 'Linux' && matrix.packages
+ # Github Actions caching proxy is at times unreliable
run: |
- # Github Actions caching proxy is at times unreliable
echo -e 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
sudo sed -i 's#http://azure.archive.ubuntu.com/ubuntu/#mirror+file:/etc/apt/mirrors.txt#' /etc/apt/sources.list