Skip to content

Commit 88148c5

Browse files
committed
Start of commit job
1 parent 1fcbfe4 commit 88148c5

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/native.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
edit-mode: replace
5757
outputs:
5858
matrix_strategy: ${{ steps.strat.outputs.matrix_strategy }}
59+
targets_referenced: ${{ steps.parse.outputs.targets_referenced }}
5960
build:
6061
needs: [prerequisites]
6162
strategy:
@@ -73,3 +74,25 @@ jobs:
7374
path: |
7475
${{ matrix.flat.dir }}/runtimes/${{ matrix.flat.runtime }}/**/*
7576
${{ matrix.flat.dir}}/lib/*${{ matrix.flat.runtime }}*/**/*
77+
commit:
78+
name: Commit Binaries
79+
needs: [prerequisites, build]
80+
runs-on: ubuntu-latest
81+
if: ${{ needs.prerequisites.outputs.targets_referenced }}
82+
steps:
83+
- name: Checkout PR
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
run: gh pr checkout ${{ github.event.pull_request.number }}
87+
- name: Download All Artifacts
88+
uses: actions/download-artifact@v4
89+
with:
90+
pattern: natives-*
91+
merge-multiple: true
92+
- name: Commit Artifacts
93+
run: |
94+
git config --local user.email "9011267+dotnet-bot@users.noreply.github.com"
95+
git config --local user.name "The Silk.NET Automaton"
96+
git add .
97+
git commit -m "Update native binaries for ${{ github.sha }}"
98+
git push

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,3 +489,11 @@ src/Website/Silk.NET.Statiq/cache
489489

490490
# Verify
491491
*.received.*
492+
493+
# Native Binaries
494+
!**/runtimes/*/native/*.dylib
495+
!**/runtimes/*/native/*.so
496+
!**/runtimes/*/native/*.dll
497+
!**/lib/**/*.aar
498+
build/
499+
!eng/build/

0 commit comments

Comments
 (0)