diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 4397973..620227c 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -6,11 +6,12 @@ jobs: maven-ubuntu20: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: sudo apt-get install protobuf-compiler - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 1.8 - name: Build with Maven run: mvn -B package --file pom.xml @@ -18,11 +19,12 @@ jobs: maven-ubuntu22: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: sudo apt-get install protobuf-compiler - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 1.8 - name: Build with Maven run: mvn -B package --file pom.xml @@ -30,11 +32,12 @@ jobs: ant-ubuntu20: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: sudo apt-get install protobuf-compiler libprotobuf-java - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 1.8 - name: Build with Ant run: ant @@ -42,11 +45,12 @@ jobs: ant-ubuntu22: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: sudo apt-get install protobuf-compiler libprotobuf-java - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 1.8 - name: Build with Ant run: ant diff --git a/README.md b/README.md index 6ce55f5..e8635ec 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ Note that this is a low-level library that does only part of the encoding/decoding needed for actually writing/reading an OSM PBF file. For something more complete see [libosmium](https://osmcode.org/libosmium/). -[![Github Actions C Build Status](https://github.com/openstreetmap/OSM-binary/workflows/C%20CI/badge.svg?branch=master)](https://github.com/openstreetmap/OSM-binary/actions) -[![Github Actions Java Build Status](https://github.com/openstreetmap/OSM-binary/workflows/Java%20CI/badge.svg?branch=master)](https://github.com/openstreetmap/OSM-binary/actions) +[![Github Actions C++ CI](https://github.com/openstreetmap/OSM-binary/actions/workflows/c.yml/badge.svg)](https://github.com/openstreetmap/OSM-binary/actions/workflows/c.yml) +[![Github Actions Java CI](https://github.com/openstreetmap/OSM-binary/actions/workflows/java.yml/badge.svg)](https://github.com/openstreetmap/OSM-binary/actions/workflows/java.yml) [![Packaging status](https://repology.org/badge/tiny-repos/libosmpbf.svg)](https://repology.org/project/libosmpbf/versions) ## Java Version