Skip to content

Commit 65d21c6

Browse files
authored
fix workflow (#830)
1 parent 048396e commit 65d21c6

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
20-
with:
21-
fetch-depth: 0
2220

2321
- name: Download lua
2422
id: lua
@@ -50,11 +48,11 @@ jobs:
5048

5149
- name: Build x32
5250
run: |
53-
msbuild build\ocgcoredll.sln /t:Build /p:"Configuration=Release;Platform=Win32"
51+
msbuild build\ocgcoredll.sln /m /t:Build /p:"Configuration=Release;Platform=Win32"
5452
5553
- name: Build x64
5654
run: |
57-
msbuild build\ocgcoredll.sln /t:Build /p:"Configuration=Release;Platform=x64"
55+
msbuild build\ocgcoredll.sln /m /t:Build /p:"Configuration=Release;Platform=x64"
5856
5957
- name: Upload build artifacts
6058
uses: actions/upload-artifact@v4
@@ -81,8 +79,6 @@ jobs:
8179
steps:
8280
- name: Checkout
8381
uses: actions/checkout@v4
84-
with:
85-
fetch-depth: 0
8682

8783
- name: Install Dependencies
8884
run: |
@@ -118,13 +114,13 @@ jobs:
118114
- name: Build x32
119115
run: |
120116
cd build
121-
make -j 4 config=release_x32
117+
make -j $(nproc) config=release_x32
122118
cd ..
123119
124120
- name: Build x64
125121
run: |
126122
cd build
127-
make -j 4 config=release_x64
123+
make -j $(nproc) config=release_x64
128124
cd ..
129125
130126
- name: Upload build artifacts

0 commit comments

Comments
 (0)