Skip to content

Commit

Permalink
Update action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaelers committed Sep 29, 2024
1 parent a4328a6 commit 7472f53
Showing 1 changed file with 31 additions and 21 deletions.
52 changes: 31 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
WORKRAVE_BUILD_DATETIME: ${{ steps.out.outputs.WORKRAVE_BUILD_DATETIME }}
WORKRAVE_BUILD_DATE: ${{ steps.out.outputs.WORKRAVE_BUILD_DATE }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"
Expand All @@ -40,9 +40,9 @@ jobs:
WORKRAVE_BUILD_DATE: ${{ needs.prep.outputs.WORKRAVE_BUILD_DATE }}

- name: Upload artifacts to GitHub
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-root-catalog
path: _deploy

build-windows-vcpkg:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
setapikey "${{ secrets.GITHUB_TOKEN }}"
-source "${{ env.GH_NUGET_REGISTRY }}"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Add msbuild to PATH
uses: microsoft/[email protected]
Expand All @@ -124,9 +124,9 @@ jobs:
run: msbuild ui/applets/windows/src/Applet.sln -t:Rebuild -p:Configuration=${{ matrix.configuration }} -p:Platform=${{ matrix.platform }}

- name: Upload artifacts to GitHub
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: applet
name: artifacts-applet
path: |
ui/applets/windows/src/x64/Release/workrave-applet64.dll
ui/applets/windows/src/Release/workrave-applet.dll
Expand All @@ -142,12 +142,12 @@ jobs:
- configuration: Release
ui: Gtk+3
enable: TESTS, CRASHPAD, AUTO_UPDATE
upload: true
upload: windows-gtk3-release

- configuration: Debug
enable: TESTS, TRACING, CRASHPAD, AUTO_UPDATE
ui: Gtk+3
upload: true
upload: windows-gtk3-debug

- configuration: Release
ui: Qt
Expand All @@ -157,7 +157,7 @@ jobs:
enable: TESTS, TRACING, CRASHPAD, AUTO_UPDATE
ui: Qt
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"
Expand Down Expand Up @@ -213,10 +213,10 @@ jobs:
WORKRAVE_BUILD_DATE: ${{ needs.prep.outputs.WORKRAVE_BUILD_DATE }}

- name: Upload artifacts to GitHub
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ matrix.config.upload }}
with:
name: artifacts
name: artifacts-${{ matrix.config.upload }}
path: _deploy

build-cmake:
Expand All @@ -243,15 +243,15 @@ jobs:
ui: Gtk+3
enable: INDICATOR,GNOME_CLASSIC_PANEL,GSTREAMER,PULSE,TESTS
disable: COVERAGE,TRACING
appimage: true
upload: true

- image: ubuntu-noble
os: ubuntu-24.04
compiler: gcc
ui: Gtk+3
enable: INDICATOR,GNOME45,GNOME_CLASSIC_PANEL,GSTREAMER,PULSE,TESTS
disable: COVERAGE,TRACING
appimage: true
upload: ubuntu-noble

- image: ubuntu-oracular
os: ubuntu-24.04
Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:
echo "version=dev" >> $GITHUB_OUTPUT
fi
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -398,24 +398,34 @@ jobs:
WORKRAVE_BUILD_DATE: ${{ needs.prep.outputs.WORKRAVE_BUILD_DATE }}

- name: Upload artifacts to GitHub
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ matrix.config.upload }}
with:
name: artifacts
name: artifacts-${{ matrix.config.upload }}
path: _deploy

merge:
runs-on: ubuntu-latest
needs: [ prep, build-cmake, build-msys2 ]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: all-artifacts
pattern: artifacts-*

deploy:
runs-on: ubuntu-24.04
needs: [prep, build-cmake, build-msys2]
needs: [prep, build-cmake, build-msys2, merge]
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') )
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifacts
name: all-artifacts
path: artifacts

- name: Sign
Expand Down

0 comments on commit 7472f53

Please sign in to comment.