maint: update build.yml

This commit is contained in:
6arelyFuture 2023-02-09 00:46:55 +00:00 committed by GitHub
parent 0d7bb71710
commit 206932838d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,14 +30,14 @@ jobs:
platform: x64 platform: x64
steps: steps:
- name: Check out files - name: Check out files
uses: actions/checkout@v3 uses: actions/checkout@v3.3.0
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
lfs: false lfs: false
- name: Add msbuild to PATH - name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1.3 uses: microsoft/setup-msbuild@v1.3.1
- name: Generate project files - name: Generate project files
run: cmd /C call generate.bat run: cmd /C call generate.bat
@ -49,7 +49,7 @@ jobs:
run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=${{matrix.platform}} build/xlabs-master-tool.sln run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=${{matrix.platform}} build/xlabs-master-tool.sln
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries - name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
uses: actions/upload-artifact@v3.1.0 uses: actions/upload-artifact@v3.1.2
with: with:
name: Windows ${{matrix.configuration}} ${{matrix.arch}} binaries name: Windows ${{matrix.configuration}} ${{matrix.arch}} binaries
path: | path: |
@ -74,7 +74,7 @@ jobs:
config: release config: release
steps: steps:
- name: Check out files - name: Check out files
uses: actions/checkout@v3 uses: actions/checkout@v3.3.0
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
@ -98,7 +98,7 @@ jobs:
../tools/mold/mold -run make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc) ../tools/mold/mold -run make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries - name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
uses: actions/upload-artifact@v3.1.0 uses: actions/upload-artifact@v3.1.2
with: with:
name: Linux ${{matrix.configuration}} ${{matrix.arch}} binaries name: Linux ${{matrix.configuration}} ${{matrix.arch}} binaries
path: | path: |
@ -127,7 +127,7 @@ jobs:
platform: arm64 platform: arm64
steps: steps:
- name: Check out files - name: Check out files
uses: actions/checkout@v3 uses: actions/checkout@v3.3.0
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
@ -145,7 +145,7 @@ jobs:
make config=${{matrix.config}}_${{matrix.platform}} -j$(sysctl -n hw.logicalcpu) make config=${{matrix.config}}_${{matrix.platform}} -j$(sysctl -n hw.logicalcpu)
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries - name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
uses: actions/upload-artifact@v3.1.0 uses: actions/upload-artifact@v3.1.2
with: with:
name: macOS ${{matrix.configuration}} ${{matrix.arch}} binaries name: macOS ${{matrix.configuration}} ${{matrix.arch}} binaries
path: | path: |