Skip to content

Commit

Permalink
Add CI for Debian.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Orponen committed Jul 15, 2023
1 parent c521d90 commit 5512853
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci-debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CI - Debian"
on: push

jobs:
ci-debian:
runs-on: ubuntu-22.04
strategy:
matrix:
version:
- "bullseye" # 11
- "bookworm" # 12
- "trixie" # 13
fail-fast: false
container:
image: debian:${{ matrix.version }}-slim
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Install Dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt-get -qq update
apt-get -qq upgrade
apt-get -qq install --no-install-suggests --no-install-recommends \
default-jdk-headless \
bazel-bootstrap \
git
- name: Parse Java Version
run: echo java_version="$(java -version 2>&1 | head -n1 | cut -d'"' -f2 | cut -d'.' -f1)" >> "$GITHUB_ENV"

- name: Build
run: bazel build --java_language_version="${{ env.java_version }}" :all

- name: Test
run: bazel test //...

0 comments on commit 5512853

Please sign in to comment.