Skip to content

Commit

Permalink
🐎 ci: Upgrade github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Feb 1, 2024
1 parent 3ebe4c6 commit 5ab05cd
Showing 1 changed file with 101 additions and 101 deletions.
202 changes: 101 additions & 101 deletions .github/workflows/build_jaspiler_artifact.yml
Original file line number Diff line number Diff line change
@@ -1,101 +1,101 @@
name: Build Jaspiler
concurrency:
group: build_jaspiler_${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**.md"
- "**.rst"
- "docs/**"
push:
paths-ignore:
- "**.md"
- "**.rst"
- "docs/**"

env:
JASPILER_VERSION: 0.1.0

jobs:
build_jaspiler_for_linux_and_windows:
name: Build Jaspiler for Linux and Windows
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.1

- name: Setup NPM
uses: actions/setup-node@v3
with:
node-version: 18

- name: NPM Install
run: |
cd scripts/node
npm install
cd ../../
- name: Build the Artifact
run: |
gradle build test
zip -d build/libs/Jaspiler-${{ env.JASPILER_VERSION }}.jar "*-v8-*.dll" "*-v8-*.so"
- name: Upload the Artifact
uses: actions/upload-artifact@v3
with:
name: jaspiler-${{ env.JASPILER_VERSION }}
path: build/libs/*.jar

build_jaspiler_for_macos:
name: Build Jaspiler for MacOS
runs-on: macos-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.1

- name: Setup NPM
uses: actions/setup-node@v3
with:
node-version: 18

- name: NPM Install
run: |
cd scripts/node
npm install
cd ../../
- name: Build the Artifact
run: |
gradle build test
zip -d build/libs/Jaspiler-macos-${{ env.JASPILER_VERSION }}.jar "*-v8-*.dylib"
- name: Upload the Artifact
uses: actions/upload-artifact@v3
with:
name: jaspiler-macos-${{ env.JASPILER_VERSION }}
path: build/libs/*.jar
name: Build Jaspiler
concurrency:
group: build_jaspiler_${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**.md"
- "**.rst"
- "docs/**"
push:
paths-ignore:
- "**.md"
- "**.rst"
- "docs/**"

env:
JASPILER_VERSION: 0.1.0

jobs:
build_jaspiler_for_linux_and_windows:
name: Build Jaspiler for Linux and Windows
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.5

- name: Setup NPM
uses: actions/setup-node@v4
with:
node-version: 18

- name: NPM Install
run: |
cd scripts/node
npm install
cd ../../
- name: Build the Artifact
run: |
gradle build test
zip -d build/libs/Jaspiler-${{ env.JASPILER_VERSION }}.jar "*-v8-*.dll" "*-v8-*.so"
- name: Upload the Artifact
uses: actions/upload-artifact@v4
with:
name: jaspiler-${{ env.JASPILER_VERSION }}
path: build/libs/*.jar

build_jaspiler_for_macos:
name: Build Jaspiler for MacOS
runs-on: macos-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.5

- name: Setup NPM
uses: actions/setup-node@v4
with:
node-version: 18

- name: NPM Install
run: |
cd scripts/node
npm install
cd ../../
- name: Build the Artifact
run: |
gradle build test
zip -d build/libs/Jaspiler-macos-${{ env.JASPILER_VERSION }}.jar "*-v8-*.dylib"
- name: Upload the Artifact
uses: actions/upload-artifact@v4
with:
name: jaspiler-macos-${{ env.JASPILER_VERSION }}
path: build/libs/*.jar

0 comments on commit 5ab05cd

Please sign in to comment.