Skip to content

Commit

Permalink
Check if we don't need to use gcc directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpakin committed Oct 10, 2024
1 parent 7025d25 commit 1331161
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
matrix:
os: [ ubuntu-latest, macos-latest, macos-13 ]
steps:
- name: Checkout the repository
- name: Checkout
uses: actions/checkout@master
- name: Compile the project
- name: Build
run: make clean && make
- name: Test the project
- name: Test
run: make test

test-windows:
Expand All @@ -32,15 +32,15 @@ jobs:
uses: actions/checkout@master
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Build the project
- name: Build
shell: cmd
run: build_win
- name: Test the project
- name: Test
shell: cmd
run: build_win test

test-mingw:
name: Build on Windows with Mingw (no test yet)
name: Build on Windows with Mingw
runs-on: windows-latest
defaults:
run:
Expand All @@ -49,7 +49,7 @@ jobs:
matrix:
msystem: [ UCRT64, MINGW64, MINGW32, CLANG64 ]
steps:
- name: Checkout the repository
- name: Checkout
uses: actions/checkout@master
- name: Setup Mingw
uses: msys2/setup-msys2@v2
Expand All @@ -60,40 +60,43 @@ jobs:
base-devel
git
gcc
- name: Build the project
- name: Build
shell: cmd
run: make -j4 JANET_NO_AMALG=1
- name: Test
shell: cmd
run: make -j4 CC=gcc JANET_NO_AMALG=1
run: make -j4 JANET_NO_AMALG=1

test-mingw-linux:
name: Build and test with Mingw on Linux + Wine
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
- name: Checkout
uses: actions/checkout@master
- name: Setup Mingw and wine
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libstdc++6:i386 libgcc-s1:i386
sudo apt-get install gcc-mingw-w64-x86-64-win32 wine wine32 wine64
- name: Compile the project
- name: Build
run: make clean && make CC=x86_64-w64-mingw32-gcc LD=x86_64-w64-mingw32-gcc UNAME=MINGW RUN=wine
- name: Test the project
- name: Test
run: make test UNAME=MINGW RUN=wine VERBOSE=1

test-arm-linux:
name: Build and test ARM32 cross compilation
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
- name: Checkout
uses: actions/checkout@master
- name: Setup qemu and cross compiler
run: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabi qemu-user
- name: Compile the project
- name: Build
run: make RUN="qemu-arm -L /usr/arm-linux-gnueabi/" CC=arm-linux-gnueabi-gcc LD=arm-linux-gnueabi-gcc
- name: Test the project
- name: Test
run: make RUN="qemu-arm -L /usr/arm-linux-gnueabi/" SUBRUN="qemu-arm -L /usr/arm-linux-gnueabi/" test VERBOSE=1

test-s390x-linux:
Expand Down

0 comments on commit 1331161

Please sign in to comment.