Support podman #22
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: Build | |
on: [pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Build on ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# os: [windows-latest, macos-latest, ubuntu-latest] | |
os: [ubuntu-latest] | |
container-runtime: [docker, podman] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Prepare git | |
run: git config --global core.autocrlf false | |
if: startsWith(matrix.os, 'windows') | |
- name: Install podman if needed | |
if: matrix.container-runtime == 'podman' | |
run: | | |
dpkg -l | grep -i docker | |
sudo apt-get update | |
sudo apt-get -y install podman | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'maven' | |
- name: Build with Maven | |
run: | | |
mkdir -p ~/.redhat | |
echo '{"disabled":true}' >> ~/.redhat/io.quarkus.analytics.localconfig | |
./mvnw install -B -ntp | |
- name: Fail if there are uncommitted changes | |
shell: bash | |
run: | | |
[[ -z $(git status --porcelain | grep -v antora.yml) ]] || { echo 'There are uncommitted changes'; git status; git diff; exit 1; } |