Skip to content

Commit

Permalink
GitHub Actions: Fix "The following actions uses node12 which is depre…
Browse files Browse the repository at this point in the history
…cated and will be forced to run on node16"
  • Loading branch information
orx0815 committed Feb 8, 2024
1 parent 5a2cfe7 commit 91a82d5
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 39 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/linux_installer.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# This workflow will build a .deb installer
# This workflow will build deb and rpm installers (with jLink'ed jvms) and fat/uber jars
name: Linux DEB/RPM installers, executable jars

on:
workflow_dispatch
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
Expand All @@ -27,7 +31,7 @@ jobs:
- name: Copy native .deb to staging
run: cp -r ./deploy/jpackagefx/target/installer/*.deb deb-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: linux .deb installer
path: deb-staging
Expand All @@ -37,7 +41,7 @@ jobs:
- name: Copy native .rpm to staging
run: cp -r ./deploy/jpackagefx/target/installer/*.rpm rpm-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: linux .rpm installer
path: rpm-staging
Expand All @@ -50,7 +54,7 @@ jobs:
- name: Copy JARs to staging
run: cp ./deploy/spring-boot-maven/target/*-fat.jar jar-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: Excecuteable spring-boot jar for linux
path: jar-staging
Expand All @@ -62,7 +66,7 @@ jobs:
- name: Copy JARs to maven-shade-staging
run: cp ./deploy/spring-boot-maven/target/*-fat.jar maven-shade-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: Excecuteable maven-shaded jar for linux
path: maven-shade-staging
10 changes: 7 additions & 3 deletions .github/workflows/linux_native.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Linux BIN

on:
workflow_dispatch
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: gluonhq/setup-graalvm@master
# set GITHUB_TOKEN to avoid exceeding GitHub's API rate limit
env:
Expand Down Expand Up @@ -37,7 +41,7 @@ jobs:
- name: Copy native client to staging
run: cp -r ./deploy/graalvm/target/gluonfx/x86_64-linux/OpenJfxJcrBrowser* staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: linux_binary
path: staging
18 changes: 11 additions & 7 deletions .github/workflows/mac_installer.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# This workflow will build a .deb installer
# This workflow will build a pkg and dmg installers
name: Mac PKG/DMG installers, executable jars

on:
workflow_dispatch
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
Expand All @@ -13,7 +17,7 @@ jobs:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2'
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
Expand All @@ -32,7 +36,7 @@ jobs:
- name: Copy native pkg to staging
run: cp -r ./deploy/jpackagefx/target/installer/*.pkg pkg-staging
- name: Upload pkg
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: mac .pkg installer
path: pkg-staging
Expand All @@ -43,7 +47,7 @@ jobs:
- name: Copy native dmg to staging
run: cp -r ./deploy/jpackagefx/target/installer/*.dmg dmg-staging
- name: Upload dem
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: mac .dmg installer
path: dmg-staging
Expand All @@ -59,7 +63,7 @@ jobs:
- name: Copy JARs to staging
run: cp ./deploy/spring-boot-maven/target/*-fat.jar jar-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: Excecuteable spring-boot jar for mac
path: jar-staging
Expand All @@ -71,7 +75,7 @@ jobs:
- name: Copy JARs to maven-shade-staging
run: cp ./deploy/spring-boot-maven/target/*-fat.jar maven-shade-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: Excecuteable maven-shaded jar for mac
path: maven-shade-staging
10 changes: 7 additions & 3 deletions .github/workflows/mac_native.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: MacOS BIN

on:
workflow_dispatch
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: gluonhq/setup-graalvm@master
# set GITHUB_TOKEN to avoid exceeding GitHub's API rate limit
env:
Expand Down Expand Up @@ -39,7 +43,7 @@ jobs:
- name: Copy native client to staging
run: cp -r ./deploy/graalvm/target/gluonfx/x86_64-darwin/OpenJfxJcrBrowser* staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: mac_binary
path: staging
3 changes: 2 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/web_deployments.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# This workflow will build a .deb installer
# This workflow will build a jpro-server and a webstart zip with signed jars and jnlp stub
name: Web-based deployments, JNLP/JPRO

on:
workflow_dispatch
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
Expand All @@ -29,7 +33,7 @@ jobs:
- name: Copy webstart-zip to staging
run: cp -r ./deploy/webstart/target/*.zip webstart-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: webstart zip (needs edit of jnlp inside)
path: webstart-staging
Expand All @@ -42,7 +46,7 @@ jobs:
- name: Copy jpro-zip to staging
run: cp -r ./deploy/jpro/target/*.zip jpro-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: jpro-server zip
path: jpro-staging
18 changes: 11 additions & 7 deletions .github/workflows/win_installer.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# This workflow will build a .deb installer
# This workflow will build msi and Setup.exe installers
name: Windows MSI/EXE installers, executable jars

on:
workflow_dispatch
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:

runs-on: windows-2022

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
Expand All @@ -29,7 +33,7 @@ jobs:
- name: Copy native msi to staging
run: cp -r ./deploy/jpackagefx/target/installer/*.msi msi-staging
- name: Upload msi
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: windows msi installer
path: msi-staging
Expand All @@ -40,7 +44,7 @@ jobs:
- name: Copy native exe to staging
run: cp -r ./deploy/jpackagefx/target/installer/*.exe exe-staging
- name: Upload setup exe
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: windows setup.exe style installer
path: exe-staging
Expand All @@ -53,7 +57,7 @@ jobs:
- name: Copy JARs to staging
run: cp ./deploy/spring-boot-maven/target/*-fat.jar jar-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: Excecuteable spring-boot jar for windows
path: jar-staging
Expand All @@ -65,7 +69,7 @@ jobs:
- name: Copy JARs to maven-shade-staging
run: cp ./deploy/spring-boot-maven/target/*-fat.jar maven-shade-staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: Excecuteable maven-shaded jar for windows
path: maven-shade-staging
14 changes: 9 additions & 5 deletions .github/workflows/win_native.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: Windows EXE

on:
workflow_dispatch
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2
- name: Visual Studio shell
uses: egor-tensin/vs-shell@v1
uses: egor-tensin/vs-shell@v2
- name: Setup GraalVM environment
uses: gluonhq/setup-graalvm@master
# set GITHUB_TOKEN to avoid exceeding GitHub's API rate limit
Expand All @@ -38,7 +42,7 @@ jobs:
- name: Copy native client to staging
run: cp -r ./deploy/graalvm/target/gluonfx/x86_64-windows/*.exe staging
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.1
with:
name: windows_exe
path: staging
2 changes: 1 addition & 1 deletion deploy/jpro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</parent>

<properties>
<jpro.version>2023.1.0</jpro.version>
<jpro.version>2024.1.0</jpro.version>
<mainClassName>org.motorbrot.javafxjcrbrowser.JavaFxJcrBrowserApplication</mainClassName>
</properties>

Expand Down
Loading

0 comments on commit 91a82d5

Please sign in to comment.