Skip to content

Commit 4fd1d97

Browse files
committed
Download source code dependencies at build time
Avoid shipping source code for all dependencies by adding make rules to download source code packages.
1 parent 1987146 commit 4fd1d97

File tree

74,329 files changed

+291
-14620865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74,329 files changed

+291
-14620865
lines changed

.github/workflows/build.yml

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
cd build-linux
3030
../configure --prefix /opt/gcc/linux
3131
make -j$(nproc) stamps/build-gcc-stage2
32-
make -j$(nproc) stamps/build-gdb
3332
3433
- name: Build Win32
3534
run: |
@@ -126,3 +125,71 @@ jobs:
126125
if-no-files-found: error
127126
name: tricore-qemu-win32-artifacts
128127
path: /opt/gcc/*.zip
128+
129+
build-gdb-linux:
130+
name: GDB linux build
131+
runs-on: ubuntu-24.04
132+
133+
steps:
134+
- name: Checkout
135+
uses: actions/checkout@v4
136+
with:
137+
submodules: recursive
138+
139+
- name: Install dependencies
140+
run: |
141+
sudo ./scripts/install-apt-dependencies
142+
143+
- name: Build Linux
144+
run: |
145+
mkdir build-linux
146+
cd build-linux
147+
../configure --prefix /opt/gcc/linux
148+
make -j$(nproc) stamps/build-gdb
149+
150+
- name: Package
151+
run: |
152+
cd /opt/gcc/linux
153+
rm -rf deps
154+
tar -czf ../gdb-linux.tar.gz .
155+
156+
- name: Upload artifacts
157+
uses: actions/upload-artifact@v4
158+
with:
159+
if-no-files-found: error
160+
name: tricore-gdb-linux-artifacts
161+
path: /opt/gcc/*.tar.gz
162+
163+
build-gdb-win32:
164+
name: GDB win32 build
165+
runs-on: ubuntu-24.04
166+
167+
steps:
168+
- name: Checkout
169+
uses: actions/checkout@v4
170+
with:
171+
submodules: recursive
172+
173+
- name: Install dependencies
174+
run: |
175+
sudo ./scripts/install-apt-dependencies
176+
177+
- name: Build Win32
178+
run: |
179+
mkdir build-win32
180+
cd build-win32
181+
../configure --prefix /opt/gcc/win32 --with-host=x86_64-w64-mingw32
182+
make -j$(nproc) stamps/build-gdb
183+
184+
- name: Package
185+
run: |
186+
cd /opt/gcc/win32
187+
rm -rf deps
188+
zip -r9 ../gdb-win32.zip .
189+
190+
- name: Upload artifacts
191+
uses: actions/upload-artifact@v4
192+
with:
193+
if-no-files-found: error
194+
name: tricore-gdb-win32-artifacts
195+
path: /opt/gcc/*.zip

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ jobs:
2525
mkdir linux-bundle && cd linux-bundle
2626
tar xf ../tricore-gcc-artifacts/gcc-linux.tar.gz
2727
tar xf ../tricore-qemu-linux-artifacts/qemu-linux.tar.gz
28+
tar xf ../tricore-gdb-linux-artifacts/gdb-linux.tar.gz
2829
tar -czf tricore-gcc-${{ github.ref_name }}-linux.tar.gz ./*
2930
3031
- name: Prepare windows package
3132
run: |
3233
mkdir win32-bundle && cd win32-bundle
3334
unzip ../tricore-gcc-artifacts/gcc-win32.zip
3435
unzip ../tricore-qemu-win32-artifacts/qemu-win32.zip
36+
unzip ../tricore-gdb-win32-artifacts/gdb-win32.zip
3537
zip -r9 tricore-gcc-${{ github.ref_name }}-win32.zip ./*
3638
3739
- name: Push release artifacts

0 commit comments

Comments
 (0)