Skip to content

Commit 43458cf

Browse files
authored
Update release-crosscompile.yml
1 parent 78e4521 commit 43458cf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release-crosscompile.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Build and Release TCC (mob branch)
22

33
on:
4-
workflow_dispatch:
54
push:
65
tags:
76
- "v*.*.*"
@@ -24,14 +23,20 @@ jobs:
2423
wget -O tcc-mob.zip https://github.com/Tiny-C-Compiler/mirror-repository/archive/refs/heads/mob.zip
2524
unzip tcc-mob.zip
2625
mv mirror-repository-mob tcc
27-
cd tcc
2826
2927
- name: Install dependencies
3028
run: |
3129
sudo apt-get update
3230
sudo apt-get install -y build-essential mingw-w64 gcc-arm-linux-gnueabi
3331
34-
- name: Configure and Build
32+
- name: Build Native TCC (for tools)
33+
run: |
34+
cd tcc
35+
./configure
36+
make -j$(nproc)
37+
mv c2str c2str_host
38+
39+
- name: Configure and Build Cross-Compiled TCC
3540
run: |
3641
cd tcc
3742
case "${{ matrix.target }}" in
@@ -42,7 +47,7 @@ jobs:
4247
;;
4348
windows-x86_64)
4449
./configure --cc=x86_64-w64-mingw32-gcc --prefix=/usr
45-
make -j$(nproc)
50+
make -j$(nproc) HOST_C2STR=./c2str_host
4651
mv tcc.exe ../tcc-windows-x86_64.exe
4752
;;
4853
linux-arm)

0 commit comments

Comments
 (0)