Skip to content

Commit

Permalink
build(ci): update actions & llvm (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik committed Jun 25, 2024
1 parent ad09e01 commit ca6744e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
jobs:
build-windows:
name: Build Windows
runs-on: windows-latest
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
Expand All @@ -47,7 +47,7 @@ jobs:
lfs: false

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3.1
uses: microsoft/setup-msbuild@v2

- name: Add premake5 to PATH
uses: abel0b/[email protected]
Expand All @@ -64,15 +64,15 @@ jobs:
run: msbuild /m /v:minimal /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform}} build/gsc-tool.sln

- name: Upload ${{matrix.arch}} ${{matrix.config}} binaries
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.3.3
with:
name: windows-${{matrix.arch}}-${{matrix.config}}
path: |
build/bin/${{matrix.arch}}/${{matrix.config}}/gsc-tool.exe
build-macos:
name: Build macOS
runs-on: macos-13
runs-on: macos-14
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -116,15 +116,15 @@ jobs:
make config=${{matrix.config}}_${{matrix.arch}} -j$(sysctl -n hw.logicalcpu)
- name: Upload ${{matrix.arch}} ${{matrix.config}} binaries
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.3.3
with:
name: macos-${{matrix.arch}}-${{matrix.config}}
path: |
build/bin/${{matrix.arch}}/${{matrix.config}}/gsc-tool
build-linux:
name: Build Linux
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -145,7 +145,7 @@ jobs:
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo ./llvm.sh 18
# - name: Install dependencies (arm64)
# if: matrix.arch == 'arm64'
Expand All @@ -167,11 +167,11 @@ jobs:
pushd build
make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
env:
CC: clang-17
CXX: clang++-17
CC: clang-18
CXX: clang++-18

- name: Upload ${{matrix.arch}} ${{matrix.config}} binaries
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.3.3
with:
name: linux-${{matrix.arch}}-${{matrix.config}}
path: |
Expand All @@ -192,7 +192,7 @@ jobs:
sparse-checkout-cone-mode: false

- name: Download Binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7

- name: Compress Binaries
run: |
Expand Down

0 comments on commit ca6744e

Please sign in to comment.