Skip to content

Commit

Permalink
Start of commit job
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey committed Dec 21, 2024
1 parent 1fcbfe4 commit 88148c5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
edit-mode: replace
outputs:
matrix_strategy: ${{ steps.strat.outputs.matrix_strategy }}
targets_referenced: ${{ steps.parse.outputs.targets_referenced }}
build:
needs: [prerequisites]
strategy:
Expand All @@ -73,3 +74,25 @@ jobs:
path: |
${{ matrix.flat.dir }}/runtimes/${{ matrix.flat.runtime }}/**/*
${{ matrix.flat.dir}}/lib/*${{ matrix.flat.runtime }}*/**/*
commit:
name: Commit Binaries
needs: [prerequisites, build]
runs-on: ubuntu-latest
if: ${{ needs.prerequisites.outputs.targets_referenced }}
steps:
- name: Checkout PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr checkout ${{ github.event.pull_request.number }}
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
pattern: natives-*
merge-multiple: true
- name: Commit Artifacts
run: |
git config --local user.email "[email protected]"
git config --local user.name "The Silk.NET Automaton"
git add .
git commit -m "Update native binaries for ${{ github.sha }}"
git push
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -489,3 +489,11 @@ src/Website/Silk.NET.Statiq/cache

# Verify
*.received.*

# Native Binaries
!**/runtimes/*/native/*.dylib
!**/runtimes/*/native/*.so
!**/runtimes/*/native/*.dll
!**/lib/**/*.aar
build/
!eng/build/

0 comments on commit 88148c5

Please sign in to comment.