-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
59 changed files
with
1,380 additions
and
282 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: ANGLE | ||
on: | ||
push: | ||
branches-ignore: | ||
- "ci/**" | ||
- "develop/**" | ||
- "main" | ||
paths: | ||
- build/submodules/ANGLE | ||
- build/nuke/Native/Core.cs | ||
- build/nuke/Native/Angle.cs | ||
- .github/workflows/angle.yml | ||
jobs: | ||
Build: | ||
if: github.repository == 'dotnet/Silk.NET' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
env: | ||
- os: macos-13-xlarge | ||
name: Darwin | ||
nuke_invoke: ./build.sh | ||
name: ${{ matrix.env.name }} Build | ||
runs-on: ${{ matrix.env.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }} | ||
|
||
- name: Configure git | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "The Silk.NET Automaton" | ||
# Install python | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Build ANGLE | ||
run: ${{ matrix.env.nuke_invoke }} Angle | ||
env: | ||
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -59,27 +59,25 @@ jobs: | |
run: ./build.sh ValidateSolution | ||
- name: Pack (CI) | ||
if: ${{ github.repository != 'dotnet/Silk.NET' || !startsWith(github.ref, 'refs/tags/') }} | ||
# TODO build native mixins such as BuildLibSilkDroid | ||
# Use a release NUKE so it doesn't interfere with the debug build | ||
run: dotnet run --project build/nuke/Silk.NET.NUKE.csproj -c Release -- Pack --configuration Debug --msbuild-properties VersionSuffix=build${{ github.run_number }}.0 ContinuousIntegrationBuild=true | ||
run: dotnet run --project build/nuke/Silk.NET.NUKE.csproj -c Release -- Pack --configuration Debug --msbuild-properties VersionSuffix=${{ github.event_name != 'pull_request' && format('build{0}.0', github.run_number) || format('pr{0}.{1}', github.event.number, github.run_number) }} ContinuousIntegrationBuild=true | ||
env: | ||
ANDROID_HOME: /Users/runner/Library/Android/sdk | ||
- name: Pack (CD) | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }} | ||
# TODO build native mixins such as BuildLibSilkDroid | ||
run: ./build.sh Pack --configuration Release --msbuild-properties ContinuousIntegrationBuild=true | ||
- name: Upload Unsigned Artifacts to Actions | ||
uses: actions/upload-artifact@v2.2.4 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: unsigned_nupkgs | ||
path: "build/output_packages/*nupkg" | ||
if-no-files-found: warn | ||
retention-days: 1 | ||
- name: Push to Experimental Feed | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }} | ||
if: ${{ github.repository == 'dotnet/Silk.NET' }} | ||
run: ./build.sh PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://dotnet.github.io/Silk.NET/nuget/experimental/index.json --nuget-username ${{ secrets.EXP_NUGET_USERNAME }} --nuget-password ${{ secrets.EXP_NUGET_PASSWORD }} --nuget-api-key ${{ secrets.EXP_NUGET_PASSWORD }} | ||
- name: Push to GitHub Packages | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }} | ||
if: ${{ github.repository == 'dotnet/Silk.NET' }} | ||
run: ./build.sh PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }} | ||
PushRelease: | ||
name: Push Release to NuGet | ||
|
@@ -90,14 +88,14 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
submodules: 'false' | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: unsigned_nupkgs | ||
path: build/output_packages | ||
- name: Sign Packages | ||
run: .\build.cmd SignPackages --akv-certificate ${{ secrets.AKV_CERTIFICATE }} --akv-client-id ${{ secrets.AKV_CLIENT_ID }} --akv-client-secret ${{ secrets.AKV_CLIENT_SECRET }} --akv-tenant ${{ secrets.AKV_TENANT }} --akv-vault-url ${{ secrets.AKV_VAULT_URL }} | ||
- name: Upload Signed Artifacts to Actions | ||
uses: actions/upload-artifact@v2.2.4 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: signed_nupkgs | ||
path: "build/output_packages/*nupkg" | ||
|
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 |
---|---|---|
|
@@ -10,6 +10,8 @@ on: | |
- "build/cmake/*" | ||
- build/nuke/Native/Core.cs | ||
- build/nuke/Native/SDL2.cs | ||
- build/nuke/Native/SilkDroid.cs | ||
- build/nuke/Build.Support.cs | ||
- .github/workflows/sdl2.yml | ||
jobs: | ||
Build: | ||
|
@@ -21,15 +23,12 @@ jobs: | |
- os: ubuntu-22.04 | ||
name: Linux | ||
nuke_invoke: ./build.sh | ||
- os: windows-2022 | ||
- os: windows-latest # runner is not setup for android yet | ||
name: Windows | ||
nuke_invoke: ./build.cmd | ||
extras: | | ||
pwsh build\Install-WindowsSDK.ps1 | ||
nuke_invoke: ./build.cmd BuildLibSilkDroid | ||
- os: macos-14 | ||
name: Darwin | ||
nuke_invoke: ./build.sh | ||
extras: "" | ||
name: ${{ matrix.env.name }} Build | ||
runs-on: ${{ matrix.env.os }} | ||
steps: | ||
|
@@ -42,12 +41,52 @@ jobs: | |
git -c submodule.third_party/git-hooks.update=none submodule update --init --recursive build/submodules/SDL | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "The Silk.NET Automaton" | ||
- name: Extra prerequisites | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
if: runner.os == 'Windows' | ||
with: | ||
dotnet-version: | | ||
6.0.201 | ||
7.0.* | ||
8.0.* | ||
env: | ||
DOTNET_INSTALL_DIR: ~/.dotnet | ||
- name: Setup PowerShell Core | ||
continue-on-error: true | ||
if: runner.os == 'Windows' | ||
run: dotnet tool install --global PowerShell | ||
- name: Setup Java JDK 21 | ||
uses: actions/[email protected] | ||
if: runner.os == 'Windows' | ||
with: | ||
java-version: 21 | ||
distribution: "temurin" | ||
- name: Set PATH | ||
if: runner.os == 'Windows' | ||
id: set_path | ||
run: | | ||
echo running extras | ||
${{ matrix.env.extras }} | ||
echo "cur_path=$env:PATH\n" >> $env:GITHUB_OUTPUT | ||
- name: Setup Android Environment | ||
uses: android-actions/setup-android@v3 | ||
if: runner.os == 'Windows' | ||
env: | ||
PATH: "${{ env.DOTNET_ROOT }};${{ env.DOTNET_ROOT }}\\tools;${{ steps.set_path.outputs.cur_path }}" | ||
- name: Install Android Platforms | ||
if: runner.os == 'Windows' | ||
run: | | ||
sdkmanager --install "build-tools;30.0.2" | ||
sdkmanager --install "platform-tools" | ||
sdkmanager --install "platforms;android-31" | ||
sdkmanager --install "platforms;android-33" | ||
sdkmanager --install "platforms;android-34" | ||
sdkmanager --install "ndk-bundle" | ||
sdkmanager --install "ndk;21.4.7075529" | ||
- name: Setup Java JDK 11 | ||
uses: actions/[email protected] | ||
if: runner.os == 'Windows' | ||
with: | ||
java-version: 11 | ||
distribution: "temurin" | ||
# Install CMake | ||
- uses: lukka/get-cmake@latest | ||
if: runner.os != 'Linux' | ||
|
@@ -110,10 +149,13 @@ jobs: | |
env: | ||
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }} | ||
|
||
- name: Install Workloads | ||
if: runner.os == 'Windows' | ||
run: dotnet workload install android ios maccatalyst | ||
|
||
- name: Build SDL2 | ||
if: runner.os != 'Linux' | ||
run: ${{ matrix.env.nuke_invoke }} SDL2 | ||
run: ${{ matrix.env.nuke_invoke }} SDL2 ${{ runner.os == 'Windows' && format('{0} {1}', '--native true --android-home-value', env.ANDROID_HOME) || '' }} | ||
env: | ||
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }} | ||
|
||
|
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
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
Oops, something went wrong.