Skip to content

Pick tcc commit 08a4c52d when building from source #11

Pick tcc commit 08a4c52d when building from source

Pick tcc commit 08a4c52d when building from source #11

name: s390x_linux_gcc
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
s390x_linux_gcc:
runs-on: ubuntu-22.04
timeout-minutes: 5
env:
CC: ./s390x-linux-musl-cross/bin/s390x-linux-musl-gcc
LDFLAGS: -static
steps:
- uses: actions/checkout@v4
- run: sudo apt-get -y -qq update
- run: sudo apt install -y qemu-user
- name: Prepare cross-compiler
run: |
curl -O https://musl.cc/s390x-linux-musl-cross.tgz
tar xzf s390x-linux-musl-cross.tgz
- name: Verify tools version
run: ./s390x-linux-musl-cross/bin/s390x-linux-musl-gcc --version
- run: make
- run: file ./hello
- run: qemu-s390x ./hello