Skip to content

Commit

Permalink
fix: update CI actions (#1427)
Browse files Browse the repository at this point in the history
avoid actions that use node16


https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

also - only publish if running on main fork - not on user forks
  • Loading branch information
pjfanning authored Mar 27, 2024
1 parent 20a1a78 commit 14e5d41
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
matrix:
java-version: ["8", "11", "17", "21"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
Expand All @@ -67,7 +67,7 @@ jobs:
name: GraalVM CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
Expand All @@ -81,9 +81,9 @@ jobs:
name: Scala CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
Expand All @@ -99,9 +99,9 @@ jobs:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
Expand All @@ -116,9 +116,9 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Upgrade npm
Expand All @@ -129,7 +129,7 @@ jobs:
# OS (such as macos -latest) uses python3.12 by default, so python 3.8
# is used here to avoid this problem.
- name: Set up Python3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Run CI with NodeJS
Expand All @@ -143,9 +143,9 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: dtolnay/rust-toolchain@nightly
Expand All @@ -159,9 +159,9 @@ jobs:
os: [ubuntu-latest, macos-12, macos-14] # macos-12: x86, macos-14: arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Run C++ CI with Bazel
Expand All @@ -175,9 +175,9 @@ jobs:
matrix:
python-version: [3.7, 3.12]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install bazel
Expand Down Expand Up @@ -212,16 +212,16 @@ jobs:
name: Code Style Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'oracle'
- name: Check License Header
uses: korandoru/hawkeye@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Check code style
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-java-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ on:
jobs:
publish-java:
runs-on: ubuntu-latest
if: github.repository == 'apache/incabator-fury'
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,17 @@ jobs:
release-python:
name: Publish Fury Python to PyPI
runs-on: ubuntu-20.04
if: github.repository == 'apache/incubator-fury'
environment:
name: pypi
url: https://pypi.org/project/pyfury
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10.12, 3.11, 3.12]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install bazel
Expand Down

0 comments on commit 14e5d41

Please sign in to comment.