Pick tcc commit 08a4c52d when building from source #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mips_linux_gcc | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
mips_linux_gcc: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
env: | |
CC: ./mips-linux-musl-cross/bin/mips-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/mips-linux-musl-cross.tgz | |
tar xzf mips-linux-musl-cross.tgz | |
- name: Verify tools version | |
run: ./mips-linux-musl-cross/bin/mips-linux-musl-gcc --version | |
- run: make | |
- run: file ./hello | |
- run: qemu-mips ./hello |