Commit 85ff0cf0 for xz

commit 85ff0cf0ce11b017af21c040330f6a0c09ef7f77
Author: Lasse Collin <lasse.collin@tukaani.org>
Date:   Thu Apr 17 20:36:33 2025 +0300

    CI: Update FreeBSD

    ARM64 was left commented out because it's slow under both
    ubuntu-latest (x86-64) and ubuntu-24.04-arm (aarch64) hosts.

diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
index 9266a5d8..e16ac8ae 100644
--- a/.github/workflows/freebsd.yml
+++ b/.github/workflows/freebsd.yml
@@ -9,24 +9,47 @@ on:
     branches: [ master ]
   workflow_dispatch:

+permissions: {}
+
 jobs:
-  FreeBSD-test:
-    runs-on: ubuntu-latest
-    name: Test xz on FreeBSD
+  FreeBSD:
+    strategy:
+      matrix:
+        include:
+          - host: ubuntu-latest
+            version: 12.4
+            arch: x86_64
+          - host: ubuntu-latest
+            version: 15.0
+            arch: x86_64
+          # - host: ubuntu-24.04-arm
+          #   version: 15.0
+          #   arch: aarch64
+
+    runs-on: ${{ matrix.host }}
+
+    name: FreeBSD
+
     steps:
-    - uses: actions/checkout@v4.1.6
-    - name: Test in FreeBSD
-      id: test
-      uses: vmactions/FreeBSD-vm@d7b8fcc7711aa41ad45e8d9b737cf90f035a7e3d #v1.1.3
-      with:
-        usesh: true
-        prepare: |
-         pkg install -y autoconf automake gmake gettext-tools gtar libtool m4 po4a
-        run: |
-          set -e
-          export LC_ALL=C LANG=C
-          uname -a
-          ./autogen.sh
-          ./configure --enable-werror
-          make
-          make check VERBOSE=1
+      - uses: actions/checkout@v4
+
+      - name: Test in FreeBSD
+        uses: vmactions/freebsd-vm@c3ae29a132c8ef1924775414107a97cac042aad5 #v1.2.0
+        with:
+          release: ${{ matrix.release }}
+          arch: ${{ matrix.arch }}
+          usesh: true
+          prepare: >
+            pkg install -y
+            autoconf
+            automake
+            gettext-tools
+            libtool
+            m4
+            po4a
+          run: |
+            set -e
+            uname -a
+            ./autogen.sh
+            ./configure --disable-static --enable-debug --enable-werror
+            make -j4 check