Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TolikPylypchuk committed Feb 15, 2024
1 parent 5f757fb commit c4a3b3f
Showing 1 changed file with 40 additions and 27 deletions.
67 changes: 40 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
cmake --install ${{github.workspace}}/build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-macos-arm64
path: ${{github.workspace}}/dist/**/*

libuiohook-macos-x64:
Expand Down Expand Up @@ -86,9 +86,9 @@ jobs:
cmake --install ${{github.workspace}}/build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-macos-x64
path: ${{github.workspace}}/dist/**/*

libuiohook-mac-catalyst-arm64:
Expand Down Expand Up @@ -129,9 +129,9 @@ jobs:
cmake --install ${{github.workspace}}/build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-mac-catalyst-arm64
path: ${{github.workspace}}/dist/**/*

libuiohook-mac-catalyst-x64:
Expand Down Expand Up @@ -172,9 +172,9 @@ jobs:
cmake --install ${{github.workspace}}/build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-mac-catalyst-x64
path: ${{github.workspace}}/dist/**/*

libuiohook-linux-arm:
Expand Down Expand Up @@ -246,9 +246,9 @@ jobs:
cmake --install ${{github.workspace}}/build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-linux-arm
path: ${{github.workspace}}/dist/**/*

libuiohook-linux-arm64:
Expand Down Expand Up @@ -320,9 +320,9 @@ jobs:
cmake --install ${{github.workspace}}/build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-linux-arm64
path: ${{github.workspace}}/dist/**/*

libuiohook-linux-x64:
Expand Down Expand Up @@ -373,9 +373,9 @@ jobs:
cmake --install ${{github.workspace}}/build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-linux-x64
path: ${{github.workspace}}/dist/**/*

libuiohook-windows-arm64:
Expand Down Expand Up @@ -413,9 +413,9 @@ jobs:
cmake --install ${{github.workspace}}\build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-windows-arm64
path: ${{github.workspace}}/dist/**/*

libuiohook-windows-x86:
Expand Down Expand Up @@ -453,9 +453,9 @@ jobs:
cmake --install ${{github.workspace}}\build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-windows-x86
path: ${{github.workspace}}/dist/**/*

libuiohook-windows-x64:
Expand Down Expand Up @@ -493,13 +493,14 @@ jobs:
cmake --install ${{github.workspace}}\build --config RelWithDebInfo
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libuiohook-build
name: libuiohook-windows-x64
path: ${{github.workspace}}/dist/**/*

sharphook:
merge-libuiohook-artifacts:
runs-on: windows-latest

needs:
- libuiohook-macos-arm64
- libuiohook-macos-x64
Expand All @@ -512,13 +513,25 @@ jobs:
- libuiohook-windows-x86
- libuiohook-windows-x64

steps:
- uses: actions/upload-artifact/merge@v4
with:
name: libuiohook-build
pattern: libuiohook-*
delete-merged: true

sharphook:
runs-on: windows-latest
needs:
- merge-libuiohook-artifacts

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand All @@ -527,7 +540,7 @@ jobs:
run: dotnet tool update --global docfx

- name: Fetch libuiohook
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: libuiohook-build
path: libuiohook-build
Expand Down Expand Up @@ -574,7 +587,7 @@ jobs:
dotnet pack --no-build --nologo -c Release -o ${{github.workspace}}\build\
- name: Upload SharpHook
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sharphook-build
path: ${{github.workspace}}\build\*
Expand All @@ -586,7 +599,7 @@ jobs:
continue-on-error: false

- name: Publish Docs
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@4eb285e # Should be updated once there's a new tag with Node 20
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site/
Expand All @@ -607,12 +620,12 @@ jobs:
submodules: recursive

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Fetch Packages
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sharphook-build
path: sharphook-build
Expand Down

0 comments on commit c4a3b3f

Please sign in to comment.