-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
100 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,53 +19,53 @@ env: | |
PREMAKE_VERSION: "5.0.0-beta2" | ||
|
||
jobs: | ||
build-windows: | ||
name: Build Windows | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- release | ||
arch: | ||
- x86 | ||
- x64 | ||
include: | ||
- arch: x86 | ||
platform: Win32 | ||
- arch: x64 | ||
platform: x64 | ||
steps: | ||
- name: Check out files | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
lfs: false | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Add premake5 to PATH | ||
uses: abel0b/[email protected] | ||
with: | ||
version: ${{ env.PREMAKE_VERSION }} | ||
|
||
- name: Generate project files | ||
run: premake5 vs2022 | ||
|
||
- name: Set up problem matching | ||
uses: ammaraskar/msvc-problem-matcher@master | ||
|
||
- name: Build ${{matrix.arch}} ${{matrix.config}} binaries | ||
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/[email protected] | ||
with: | ||
name: windows-${{matrix.arch}}-${{matrix.config}} | ||
path: | | ||
build/bin/${{matrix.arch}}/${{matrix.config}}/gsc-tool.exe | ||
# build-windows: | ||
# name: Build Windows | ||
# runs-on: windows-latest | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# config: | ||
# - release | ||
# arch: | ||
# - x86 | ||
# - x64 | ||
# include: | ||
# - arch: x86 | ||
# platform: Win32 | ||
# - arch: x64 | ||
# platform: x64 | ||
# steps: | ||
# - name: Check out files | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: true | ||
# fetch-depth: 0 | ||
# lfs: false | ||
|
||
# - name: Add msbuild to PATH | ||
# uses: microsoft/[email protected] | ||
|
||
# - name: Add premake5 to PATH | ||
# uses: abel0b/[email protected] | ||
# with: | ||
# version: ${{ env.PREMAKE_VERSION }} | ||
|
||
# - name: Generate project files | ||
# run: premake5 vs2022 | ||
|
||
# - name: Set up problem matching | ||
# uses: ammaraskar/msvc-problem-matcher@master | ||
|
||
# - name: Build ${{matrix.arch}} ${{matrix.config}} binaries | ||
# 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/[email protected] | ||
# with: | ||
# name: windows-${{matrix.arch}}-${{matrix.config}} | ||
# path: | | ||
# build/bin/${{matrix.arch}}/${{matrix.config}}/gsc-tool.exe | ||
|
||
build-macos: | ||
name: Build macOS | ||
|
@@ -109,68 +109,68 @@ jobs: | |
path: | | ||
build/bin/${{matrix.arch}}/${{matrix.config}}/gsc-tool | ||
build-linux: | ||
name: Build Linux | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- release | ||
arch: | ||
- x64 | ||
- arm64 | ||
steps: | ||
- name: Check out files | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
lfs: false | ||
|
||
- name: Install dependencies (arm64) | ||
if: matrix.arch == 'arm64' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install crossbuild-essential-arm64 -y | ||
- name: Add premake5 to PATH | ||
uses: abel0b/[email protected] | ||
with: | ||
version: ${{ env.PREMAKE_VERSION }} | ||
|
||
- name: Generate project files | ||
run: premake5 gmake2 | ||
|
||
- name: Set up problem matching | ||
uses: ammaraskar/gcc-problem-matcher@master | ||
|
||
- name: Build ${{matrix.arch}} ${{matrix.config}} binaries | ||
run: | | ||
pushd build | ||
make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc) | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
|
||
- name: Upload ${{matrix.arch}} ${{matrix.config}} binaries | ||
uses: actions/[email protected] | ||
with: | ||
name: linux-${{matrix.arch}}-${{matrix.config}} | ||
path: | | ||
build/bin/${{matrix.arch}}/${{matrix.config}}/gsc-tool | ||
# build-linux: | ||
# name: Build Linux | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# config: | ||
# - release | ||
# arch: | ||
# - x64 | ||
# - arm64 | ||
# steps: | ||
# - name: Check out files | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: true | ||
# fetch-depth: 0 | ||
# lfs: false | ||
|
||
# - name: Install dependencies (arm64) | ||
# if: matrix.arch == 'arm64' | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install crossbuild-essential-arm64 -y | ||
|
||
# - name: Add premake5 to PATH | ||
# uses: abel0b/[email protected] | ||
# with: | ||
# version: ${{ env.PREMAKE_VERSION }} | ||
|
||
# - name: Generate project files | ||
# run: premake5 gmake2 | ||
|
||
# - name: Set up problem matching | ||
# uses: ammaraskar/gcc-problem-matcher@master | ||
|
||
# - name: Build ${{matrix.arch}} ${{matrix.config}} binaries | ||
# run: | | ||
# pushd build | ||
# make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc) | ||
# env: | ||
# CC: clang | ||
# CXX: clang++ | ||
|
||
# - name: Upload ${{matrix.arch}} ${{matrix.config}} binaries | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: linux-${{matrix.arch}}-${{matrix.config}} | ||
# path: | | ||
# build/bin/${{matrix.arch}}/${{matrix.config}}/gsc-tool | ||
|
||
deploy: | ||
name: Deploy Release | ||
runs-on: ubuntu-latest | ||
needs: [ build-macos, build-linux ] | ||
# if: startsWith(github.ref, 'refs/tags/') && (github.event.base_ref == 'refs/heads/prod' || github.event.base_ref == 'refs/heads/dev') | ||
needs: [ build-macos ] | ||
# if: startsWith(github.ref, 'refs/tags/') && (github.event.base_ref == 'refs/heads/prod' || github.event.base_ref == 'refs/heads/dev') | ||
steps: | ||
- name: Check out files | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download Binaries | ||
uses: actions/download-artifact@v4 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: artifacts | ||
|
||
|