Skip to content

Commit

Permalink
CI: fixes for Apple Silicon macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Dec 27, 2024
1 parent 5dff41c commit 97d7f3f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/openpilot.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: openpilot plugins

on: [push, pull_request]
on:
push:
pull_request:

# needs to run on a schedule since we push commits here
# infrequently, but the macOS brew libs get updated frequently
schedule:
- cron: '0 0 * * *'

env:
ZIP: |
Expand Down Expand Up @@ -34,7 +41,7 @@ jobs:
- name: zip plugins
run: eval "$ZIP"
- name: upload
if: github.ref == 'refs/heads/comma-master' && github.event_name == 'push'
if: (github.ref == 'refs/heads/comma-master' && github.event_name == 'push') || github.event_name == 'schedule'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -45,7 +52,7 @@ jobs:

build_mac:
name: build mac
runs-on: macOS-latest
runs-on: macOS-15
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -68,7 +75,7 @@ jobs:
- name: zip plugins
run: eval "$ZIP"
- name: upload
if: github.ref == 'refs/heads/comma-master' && github.event_name == 'push'
if: (github.ref == 'refs/heads/comma-master' && github.event_name == 'push') || github.event_name == 'schedule'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 97d7f3f

Please sign in to comment.