github: Fix build on Ubuntu 20.04 and add a job for 18.04
[strongswan.git] / .github / workflows / windows.yml
index 073bd27..31334c5 100644 (file)
@@ -13,7 +13,19 @@ env:
   MONOLITHIC: yes
 
 jobs:
+  pre-check:
+    runs-on: ubuntu-latest
+    outputs:
+      should_skip: ${{ steps.skip-check.outputs.should_skip }}
+    steps:
+      - id: skip-check
+        uses: fkirc/skip-duplicate-actions@master
+        with:
+          concurrent_skipping: 'same_content'
+
   cross-compile:
+    needs: pre-check
+    if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
     runs-on: ubuntu-latest
     strategy:
       matrix: