-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
3 changed files
with
89 additions
and
50 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 |
---|---|---|
|
@@ -72,14 +72,14 @@ jobs: | |
build-macos: | ||
name: Build macOS | ||
runs-on: macos-13 | ||
runs-on: macos-14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- release | ||
arch: | ||
- x64 | ||
- amd64 | ||
- arm64 | ||
steps: | ||
- name: Check out files | ||
|
@@ -93,7 +93,7 @@ jobs: | |
uses: Homebrew/actions/setup-homebrew@master | ||
|
||
- name: Install LLVM | ||
run: brew install llvm | ||
run: brew install llvm lld | ||
|
||
- name: Add LLVM to PATH | ||
run: | | ||
|
@@ -122,17 +122,50 @@ jobs: | |
path: | | ||
build/bin/${{matrix.arch}}/${{matrix.config}}/gsc-tool | ||
prebuild-linux: | ||
name: Prebuild Linux | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out files | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
lfs: false | ||
|
||
- name: Add premake5 to PATH | ||
uses: abel0b/[email protected] | ||
with: | ||
version: ${{ env.PREMAKE_VERSION }} | ||
|
||
- name: Generate project files | ||
run: premake5 gmake2 | ||
|
||
- name: Upload project files | ||
uses: actions/[email protected] | ||
with: | ||
name: linux-project-files | ||
path: | | ||
build/ | ||
include/xsk/version.hpp | ||
build-linux: | ||
name: Build Linux | ||
runs-on: ubuntu-24.04 | ||
runs-on: ${{ matrix.os }} | ||
needs: prebuild-linux | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- release | ||
arch: | ||
- x64 | ||
# - arm64 | ||
- amd64 | ||
- arm64 | ||
include: | ||
- arch: amd64 | ||
os: ubuntu-24.04 | ||
- arch: arm64 | ||
os: ubuntu-24.04-arm | ||
steps: | ||
- name: Check out files | ||
uses: actions/checkout@v4 | ||
|
@@ -141,26 +174,28 @@ jobs: | |
fetch-depth: 0 | ||
lfs: false | ||
|
||
- name: Download project files | ||
uses: actions/[email protected] | ||
with: | ||
name: linux-project-files | ||
path: ./ | ||
|
||
- name: Install LLVM | ||
run: | | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh 18 | ||
# - name: Install dependencies (arm64) | ||
# if: matrix.arch == 'arm64' | ||
# run: sudo apt-get install crossbuild-essential-arm64 -y | ||
|
||
- name: Add premake5 to PATH | ||
uses: abel0b/[email protected] | ||
with: | ||
version: ${{ env.PREMAKE_VERSION }} | ||
# - name: Add premake5 to PATH | ||
# uses: abel0b/[email protected] | ||
# with: | ||
# version: ${{ env.PREMAKE_VERSION }} | ||
|
||
- name: Generate project files | ||
run: premake5 gmake2 | ||
# - name: Generate project files | ||
# run: premake5 gmake2 | ||
|
||
- name: Set up problem matching | ||
uses: ammaraskar/gcc-problem-matcher@master | ||
# - name: Set up problem matching | ||
# uses: ammaraskar/gcc-problem-matcher@master | ||
|
||
- name: Build ${{matrix.arch}} ${{matrix.config}} binaries | ||
run: | | ||
|
@@ -196,6 +231,8 @@ jobs: | |
|
||
- name: Compress Binaries | ||
run: | | ||
rm -rf linux-project-files/ | ||
for dir in */; do | ||
if [[ $dir == *"windows"* ]]; then | ||
cd "$dir" && zip -r "../${dir%/}.zip" . && cd .. | ||
|
@@ -221,10 +258,8 @@ jobs: | |
# with: | ||
# cosign-release: 'v2.1.1' | ||
|
||
# - name: Setup QEMU | ||
# uses: docker/[email protected] | ||
# with: | ||
# platforms: linux/amd64,linux/arm64 | ||
- name: Setup QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/[email protected] | ||
|
@@ -257,7 +292,7 @@ jobs: | |
uses: docker/[email protected] | ||
with: | ||
context: . | ||
platforms: linux/amd64 | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
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
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