This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
18ac215
commit 0e9752e
Showing
2 changed files
with
53 additions
and
54 deletions.
There are no files selected for viewing
104 changes: 52 additions & 52 deletions
104
.github/workflows/01-build-and-test-rockstar-engine.yml
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 |
---|---|---|
@@ -1,54 +1,54 @@ | ||
name: build-and-test-engine | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- 'Starship/**' | ||
- '.github/workflows/**' | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up .NET 8 SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '8.x' | ||
|
||
- name: Install .NET WASM workloads | ||
working-directory: ./Starship | ||
run: dotnet workload restore | ||
|
||
- name: Build Rockstar | ||
run: dotnet build Starship -configuration Release | ||
|
||
- name: Test Rockstar | ||
run: dotnet test Starship -c Release | ||
|
||
- name: Publish WASM engine | ||
run: dotnet publish Starship/Rockstar.Wasm -o rockstar_wasm -c Release | ||
|
||
# - name: Publish Rockstar Linux binary | ||
# run: dotnet publish Starship/Rockstar -o rockstar_linux_binary -c Release | ||
|
||
- name: Upload WASM engine | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rockstar_wasm | ||
path: | | ||
rockstar_wasm/wwwroot/_framework | ||
# - name: Upload Linux binary | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: rockstar_linux_binary | ||
# path: | | ||
# rockstar_linux_binary | ||
# name: build-and-test-engine | ||
|
||
# on: | ||
# push: | ||
# branches: ["main"] | ||
# paths: | ||
# - 'Starship/**' | ||
# - '.github/workflows/**' | ||
# workflow_dispatch: | ||
# workflow_call: | ||
|
||
# jobs: | ||
# # Build job | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Set up .NET 8 SDK | ||
# uses: actions/setup-dotnet@v3 | ||
# with: | ||
# dotnet-version: '8.x' | ||
|
||
# - name: Install .NET WASM workloads | ||
# working-directory: ./Starship | ||
# run: dotnet workload restore | ||
|
||
# - name: Build Rockstar | ||
# run: dotnet build Starship -configuration Release | ||
|
||
# - name: Test Rockstar | ||
# run: dotnet test Starship -c Release | ||
|
||
# - name: Publish WASM engine | ||
# run: dotnet publish Starship/Rockstar.Wasm -o rockstar_wasm -c Release | ||
|
||
# # - name: Publish Rockstar Linux binary | ||
# # run: dotnet publish Starship/Rockstar -o rockstar_linux_binary -c Release | ||
|
||
# - name: Upload WASM engine | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: rockstar_wasm | ||
# path: | | ||
# rockstar_wasm/wwwroot/_framework | ||
|
||
# # - name: Upload Linux binary | ||
# # uses: actions/upload-artifact@v4 | ||
# # with: | ||
# # name: rockstar_linux_binary | ||
# # path: | | ||
# # rockstar_linux_binary | ||
|
||
|
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