Skip to content

Commit a0bdb5b

Browse files
committed
add: Multi thread build for workflow and dockerfile
1 parent 5749fa7 commit a0bdb5b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/compilation.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ jobs:
2020
run: |
2121
apk add build-base git bash
2222
23-
# Still compilation is not fully compatible with multi-thread
2423
- name: Compile project ${{ matrix.debug }}
2524
run: |
2625
make -j $(getconf _NPROCESSORS_ONLN) clean
27-
make -j 1 ${{ matrix.debug }}
26+
make -j $(getconf _NPROCESSORS_ONLN) ${{ matrix.debug }}
2827
make -j $(getconf _NPROCESSORS_ONLN) install
2928
ln -sf "$PS2SDK/ee/lib/libcglue.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libcglue.a"
3029
ln -sf "$PS2SDK/ee/lib/libpthreadglue.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libpthreadglue.a"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apk add build-base git bash
99
# Still compilation is not fully compatible with multi-thread
1010
RUN cd /src && \
1111
make -j $(getconf _NPROCESSORS_ONLN) clean && \
12-
make -j 1 && \
12+
make -j $(getconf _NPROCESSORS_ONLN) && \
1313
make -j $(getconf _NPROCESSORS_ONLN) install
1414
RUN ln -sf "$PS2SDK/ee/lib/libcglue.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libcglue.a"
1515
RUN ln -sf "$PS2SDK/ee/lib/libpthreadglue.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libpthreadglue.a"

0 commit comments

Comments
 (0)