add build targeting glibc 2.24 #305
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build Ngrok Java | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
targets: x86_64-unknown-linux-gnu | |
- uses: ./.github/workflows/rust-cache | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: | | |
17 | |
11 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Verification | |
run: mvn --batch-mode verify | |
env: | |
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }} | |
build-glibc-2_24: | |
name: Build Ngrok Java (glibc 2.24) | |
runs-on: ubuntu-latest | |
container: quay.io/pypa/manylinux_2_24_x86_64 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
targets: x86_64-unknown-linux-gnu | |
- uses: ./.github/workflows/rust-cache | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: | | |
17 | |
11 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Install maven | |
run: | | |
curl -sL https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz -o maven.tar.gz | |
tar xvf maven.tar.gz | |
rm maven.tar.gz | |
- name: Verification | |
run: apache-maven-3.8.8/bin/mvn --batch-mode verify | |
env: | |
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }} | |
JAVA_11_HOME: /__t/Java_Temurin-Hotspot_jdk/11.0.23-9/x64 | |
JAVA_17_HOME: /__t/Java_Temurin-Hotspot_jdk/17.0.11-9/x64 | |
udeps: | |
name: Udeps | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: jrobsonchase/[email protected] | |
- uses: ./.github/workflows/rust-cache | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: generate rust files | |
run: mvn --batch-mode --projects ngrok-java-native --also-make process-classes | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: udeps | |
args: '--workspace --all-targets --all-features --manifest-path ngrok-java-native/Cargo.toml' | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: jrobsonchase/[email protected] | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: '--all --manifest-path ngrok-java-native/Cargo.toml -- --check' | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: jrobsonchase/[email protected] | |
- uses: ./.github/workflows/rust-cache | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: generate rust files | |
run: mvn --batch-mode --projects ngrok-java-native --also-make process-classes | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: '--all-targets --all-features --workspace --manifest-path ngrok-java-native/Cargo.toml -- -D warnings' |