Browse Source

(experiment) add cron

Peter Squicciarini 4 years ago
parent
commit
a1985c9eb9
2 changed files with 4 additions and 3 deletions
  1. 2 3
      .github/workflows/linux.yml
  2. 2 0
      .github/workflows/macos.yml

+ 2 - 3
.github/workflows/linux.yml

@@ -1,6 +1,8 @@
 name: linux_build
 name: linux_build
 
 
 on:
 on:
+  schedule:
+    - cron: '0 0 * * *'
   push:
   push:
   pull_request:
   pull_request:
     branches: [ master ]
     branches: [ master ]
@@ -78,9 +80,6 @@ jobs:
             export CC_host=/usr/bin/gcc
             export CC_host=/usr/bin/gcc
             export CXX_host=/usr/bin/g++
             export CXX_host=/usr/bin/g++
             export PKG_CONFIG_LIBDIR=/usr/lib/$triplet/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
             export PKG_CONFIG_LIBDIR=/usr/lib/$triplet/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
-          else
-            sudo apt-get update
-            sudo apt-get install libx11-dev
           fi
           fi
         if: env.SHOULD_BUILD == 'yes'
         if: env.SHOULD_BUILD == 'yes'
           
           

+ 2 - 0
.github/workflows/macos.yml

@@ -1,6 +1,8 @@
 name: macos_build
 name: macos_build
 
 
 on:
 on:
+  schedule:
+    - cron: '0 0 * * *'
   push:
   push:
   pull_request:
   pull_request:
     branches: [ master ]
     branches: [ master ]