]> https://gitweb.dealii.org/ - dealii.git/commitdiff
github actions: split windows build
authorTimo Heister <timo.heister@gmail.com>
Mon, 11 May 2020 20:34:43 +0000 (16:34 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 11 May 2020 21:06:56 +0000 (17:06 -0400)
- move windows build out of main.yml
- test VS 2017 and VS 2019

.github/workflows/main.yml
.github/workflows/windows.yml [new file with mode: 0644]

index ed94dd61921d619e6957afcac6ffd1b19e060207..baeeedb23a0dcc73fc2f88755cb6be40c76e34e6 100644 (file)
@@ -96,41 +96,3 @@ jobs:
         make -j 2
         make -j 2 test #quicktests
 
-  windows-serial:
-    # Serial build on Windows
-    name: Windows Serial
-    runs-on: [windows-latest]
-
-    steps:
-    - uses: actions/checkout@v2
-    - name: info
-      run: |
-        cmake --version
-        wmic logicaldisk get size, freespace, caption
-    - name: configure
-      shell: bash
-      run: |
-        mkdir build
-        mkdir c:/project
-        cd build
-        cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=c:/project ..
-    - name: archive logs
-      uses: actions/upload-artifact@v1
-      with:
-        name: windows-serial-detailed.log
-        path: build/detailed.log
-    - name: build library
-      shell: bash
-      run: |
-        cmake --build build  --target install -- -m
-        cd c:/project
-        7z a dealii-windows.zip *
-    - name: test library
-      shell: bash
-      run: |
-        cmake --build build  --target test -- -m
-    - name: archive library
-      uses: actions/upload-artifact@v1
-      with:
-        name: dealii-windows.zip
-        path: c:/project/dealii-windows.zip
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
new file mode 100644 (file)
index 0000000..4e209cb
--- /dev/null
@@ -0,0 +1,46 @@
+name: github-windows
+
+on: [push, pull_request]
+
+jobs:
+  windows-serial:
+    # Serial build on Windows
+    name: Windows Serial
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [windows-2019, windows-2016]
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: info
+      run: |
+        cmake --version
+        wmic logicaldisk get size, freespace, caption
+    - name: configure
+      shell: bash
+      run: |
+        mkdir build
+        mkdir c:/project
+        cd build
+        cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=c:/project ..
+    - name: archive logs
+      uses: actions/upload-artifact@v1
+      with:
+        name: windows-serial-detailed.log
+        path: build/detailed.log
+    - name: build library
+      shell: bash
+      run: |
+        cmake --build build  --target install -- -m
+        cd c:/project
+        7z a dealii-windows.zip *
+    - name: test library
+      shell: bash
+      run: |
+        cmake --build build  --target test -- -m
+    - name: archive library
+      uses: actions/upload-artifact@v1
+      with:
+        name: dealii-windows.zip
+        path: c:/project/dealii-windows.zip

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.