Skip to content

Commit

Permalink
Update build workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartan322 committed Jan 29, 2024
1 parent db8e1bf commit 3e2aec7
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:

steps:
- name: Checkout project
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4.1.1
with:
submodules: recursive

Expand All @@ -71,7 +71,7 @@ jobs:
continue-on-error: true

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5.0.0
with:
python-version: "3.x"

Expand Down Expand Up @@ -105,33 +105,45 @@ jobs:
Remove-Item bin/* -Include *.exp,*.pdb -Force
- name: Upload library artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.0
with:
name: ${{ github.event.repository.name }}-library
name: ${{ github.event.repository.name }}-${{ matrix.identifier }}-library
path: |
${{ github.workspace }}/bin/liblexy-vdf.*
- name: Upload executable artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.0
with:
name: ${{ github.event.repository.name }}-executable
name: ${{ github.event.repository.name }}-${{ matrix.identifier }}-executable
path: |
${{ github.workspace }}/bin/lexy-vdf.headless.*
- name: Archive Release
uses: thedoctor0/zip-release@0.7.1
uses: thedoctor0/zip-release@0.7.6
with:
type: "zip"
filename: "../../../liblexy-vdf.${{ matrix.platform }}.${{ matrix.arch }}.zip"
directory: "${{ github.workspace }}/bin/"
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

- name: Create and upload asset
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.13.0
with:
allowUpdates: true
artifacts: "liblexy-vdf.${{ matrix.platform }}.${{ matrix.arch }}.zip"
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

merge-library-files:
runs-on: ubuntu-latest
needs: build
name: 📚 Merge Library Files
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4.3.0
with:
delete-merged: true
name: ${{ github.event.repository.name }}-library
pattern: ${{ github.event.repository.name }}-*-library

0 comments on commit 3e2aec7

Please sign in to comment.