Skip to content

Commit

Permalink
Update Github pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
NoMore201 committed Oct 20, 2024
1 parent 77a269b commit 4b9abea
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 4b9abea

Please sign in to comment.