build(ci): update workflow (#160)

This commit is contained in:
Edo 2023-12-01 15:49:41 +01:00 committed by GitHub
parent 5ac36a1ad5
commit 0ff101d2b9

View File

@ -37,7 +37,7 @@ jobs:
platform: x64 platform: x64
steps: steps:
- name: Check out files - name: Check out files
uses: actions/checkout@v3.5.3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
@ -61,7 +61,7 @@ jobs:
run: msbuild /m /v:minimal /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform}} build/gsc-tool.sln run: msbuild /m /v:minimal /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform}} build/gsc-tool.sln
- name: Upload ${{matrix.arch}} ${{matrix.config}} binaries - name: Upload ${{matrix.arch}} ${{matrix.config}} binaries
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v3.1.3
with: with:
name: windows-${{matrix.arch}}-${{matrix.config}} name: windows-${{matrix.arch}}-${{matrix.config}}
path: | path: |
@ -80,7 +80,7 @@ jobs:
- arm64 - arm64
steps: steps:
- name: Check out files - name: Check out files
uses: actions/checkout@v3.5.3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
@ -103,7 +103,7 @@ jobs:
make config=${{matrix.config}}_${{matrix.arch}} -j$(sysctl -n hw.logicalcpu) make config=${{matrix.config}}_${{matrix.arch}} -j$(sysctl -n hw.logicalcpu)
- name: Upload ${{matrix.arch}} ${{matrix.config}} binaries - name: Upload ${{matrix.arch}} ${{matrix.config}} binaries
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v3.1.3
with: with:
name: macos-${{matrix.arch}}-${{matrix.config}} name: macos-${{matrix.arch}}-${{matrix.config}}
path: | path: |
@ -122,7 +122,7 @@ jobs:
- arm64 - arm64
steps: steps:
- name: Check out files - name: Check out files
uses: actions/checkout@v3.5.3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
@ -154,7 +154,7 @@ jobs:
CXX: clang++ CXX: clang++
- name: Upload ${{matrix.arch}} ${{matrix.config}} binaries - name: Upload ${{matrix.arch}} ${{matrix.config}} binaries
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v3.1.3
with: with:
name: linux-${{matrix.arch}}-${{matrix.config}} name: linux-${{matrix.arch}}-${{matrix.config}}
path: | path: |
@ -167,7 +167,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') && (github.event.base_ref == 'refs/heads/prod' || github.event.base_ref == 'refs/heads/dev') if: startsWith(github.ref, 'refs/tags/') && (github.event.base_ref == 'refs/heads/prod' || github.event.base_ref == 'refs/heads/dev')
steps: steps:
- name: Check out files - name: Check out files
uses: actions/checkout@v3.5.3 uses: actions/checkout@v4
- name: Download Binaries - name: Download Binaries
uses: actions/download-artifact@v3.0.2 uses: actions/download-artifact@v3.0.2