From 4b9abea4b7e75a0ade0d2b1707a7f555873463d9 Mon Sep 17 00:00:00 2001 From: Domenico Iezzi Date: Sun, 20 Oct 2024 18:47:39 +0200 Subject: [PATCH] Update Github pipeline --- .github/workflows/build.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fa6e3f..5c12262 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,9 +9,9 @@ on: - main jobs: - build: - name: Toolchain build - runs-on: ubuntu-latest + linux-build: + name: Toolchain Linux build + runs-on: ubuntu-22.04 steps: - name: Checkout @@ -22,32 +22,26 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get -y install build-essential build-essential gcc-mingw-w64 g++-mingw-w64 texinfo flex bison libmpfr-dev libgmp-dev libmpc-dev zip libdebuginfod-dev zlib + sudo apt-get -y install build-essential build-essential gcc-mingw-w64 g++-mingw-w64 texinfo flex bison libmpfr-dev libgmp-dev libmpc-dev zip libdebuginfod-dev - name: Build Linux run: | - mkdir build-linux - cd build-linux - ../configure --prefix /opt/linux - make -j$(nproc) - - - name: Build Win32 - run: | - mkdir build-win32 - cd build-win32 - ../configure --prefix=/opt/win32 --with-host=x86_64-w64-mingw32 + mkdir build + cd build + export CFLAGS="-O2" + export CXXFLAGS="-O2" + export LDFLAGS="-s" + ../configure --prefix /opt/gcc make -j$(nproc) - name: Package run: | - cd /opt/linux + cd /opt/gcc zip -r9 ../linux.zip . - cd /opt/win32 - zip -r9X ../win32.zip . - name: Upload artifacts uses: actions/upload-artifact@v4 with: if-no-files-found: error name: tricore-gcc-artifacts - path: /opt/**/*.zip + path: /opt/linux.zip