diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a937bc72c..fef35707d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,6 +14,9 @@ jobs:
         os: [macos-latest, windows-latest, ubuntu-latest]
       fail-fast: false
     steps:
+    - name: run on mac
+      if: matrix.os == 'macos-latest'
+      run: sudo xcode-select -s /Library/Developer/CommandLineTools      
     - name: run on linux
       if: matrix.os == 'ubuntu-latest'
       run: sudo apt-get install libarchive-tools
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 64ee60d4f..b9a9b20fb 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -8,17 +8,13 @@ jobs:
 
     strategy:
       matrix:
-        os: [ubuntu-latest, macos-14, macos-13, windows-latest]
+        os: [ubuntu-latest, macos-latest, windows-latest]
       fail-fast: false
 
     steps:
     - name: run on mac
-      if: matrix.os == 'macos-14'
-      run: |
-        sudo xcode-select -s "/Applications/Xcode_15.4.app"
-        echo "==> Build environment"
-        xcode-select -p
-        xcrun --show-sdk-version
+      if: matrix.os == 'macos-latest'
+      run: sudo xcode-select -s /Library/Developer/CommandLineTools
     - name: Setup DBUS environment
       if: matrix.os == 'ubuntu-latest'
       run: |