Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchao committed Feb 16, 2024
1 parent ba31d08 commit b918ac8
Showing 1 changed file with 9 additions and 80 deletions.
89 changes: 9 additions & 80 deletions .github/workflows/pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,33 +91,10 @@ jobs:
container:
image: amd64/rust
steps:
- uses: actions/checkout@v4
- name: Setup Rust & Java toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: nightly
jdk-version: ${{env.JAVA_VERSION}}

- name: Run cargo build
run: |
cd core
cargo build
- name: Cache Maven dependencies
uses: actions/cache@v4
- name: Java test steps
- uses: ./.github/actions/java-test-steps.yml
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Maven compile
run: |
./mvnw compile test-compile scalafix:scalafix -Psemanticdb
- name: Run tests
run: |
SPARK_HOME=`pwd` ./mvnw clean install
builder: setup-macos-builder

macos-rust-test:
name: Rust test (macos)
Expand Down Expand Up @@ -169,34 +146,10 @@ jobs:
name: Java test (macos)
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Setup Rust & Java toolchain
uses: ./.github/actions/setup-macos-builder
with:
rust-version: nightly
jdk-version: ${{env.JAVA_VERSION}}
architecture: x64

- name: Run cargo build
run: |
cd core
cargo build
- name: Cache Maven dependencies
uses: actions/cache@v4
- name: Java test steps
- uses: ./.github/actions/java-test-steps.yml
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Maven compile
run: |
./mvnw compile test-compile scalafix:scalafix -Psemanticdb
- name: Run tests
run: |
SPARK_HOME=`pwd` ./mvnw clean install
builder: setup-macos-builder

macos-aarch64-rust-test:
name: Rust test (macos-aarch64)
Expand Down Expand Up @@ -248,31 +201,7 @@ jobs:
name: Java test (macos-aarch64)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Setup Rust & Java toolchain
uses: ./.github/actions/setup-macos-builder
- name: Java test steps
- uses: ./.github/actions/java-test-steps.yml
with:
rust-version: nightly
jdk-version: ${{env.JAVA_VERSION}}
architecture: aarch64

- name: Run cargo build
run: |
cd core
cargo build
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Maven compile
run: |
./mvnw compile test-compile scalafix:scalafix -Psemanticdb
- name: Run tests
run: |
SPARK_HOME=`pwd` ./mvnw clean install
builder: setup-macos-builder

0 comments on commit b918ac8

Please sign in to comment.