Przeglądaj źródła

Add macos-latest

amai2012 5 lat temu
rodzic
commit
dcc28da4c8
1 zmienionych plików z 5 dodań i 6 usunięć
  1. 5 6
      .github/workflows/ccpp.yml

+ 5 - 6
.github/workflows/ccpp.yml

@@ -1,15 +1,14 @@
 name: C/C++ CI
 
-on:
-  push:
-    branches: [ master ]
-  pull_request:
-    branches: [ master ]
+on: [push, pull_request]
 
 jobs:
   build:
+    strategy:
+      matrix:
+        os: [ubuntu-latest, macos-latest]
 
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.os }}
 
     steps:
     - uses: actions/checkout@v2