Skip to content

Commit

Permalink
Force MacOS for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoFtZ committed Apr 10, 2024
1 parent 5b250cb commit 8a7bb5a
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ on:
- 'Docs/**'
- 'Site/**'
schedule:
# Run daily at 00:00 so we get notified if CI is broken before a pull request
# is submitted.
- cron: '0 0 * * *'
# Run every 30 mins.
- cron: '*/30 * * * *'

env:
DOTNET_NOLOGO: true
Expand Down Expand Up @@ -99,25 +98,7 @@ jobs:
- name: Setup OS matrix
id: setup-os-matrix
run: |
os=("ubuntu-latest" "windows-latest")
# runs on macOS only if there is a push to master, or a tag is
# pushed, we do this since macOS builds last too long and ILGPU
# is rarely used on a macOS
(
[ "${{ github.event_name }}" == "workflow_dispatch" ] ||
[ "${{ github.event_name }}" == "schedule" ] ||
(
[ "${{ github.event_name }}" == "push" ] &&
(
[ "${{ github.ref }}" == "refs/heads/master" ] ||
[[ "${{ github.ref }}" =~ "refs/tags/v" ]]
)
)
) && os+=("macos-latest")
[ "${{ steps.is-fork.outputs.fork }}" == "false" ] && os+=("cuda")
os=("macos-latest")
echo "os=$(jq -cn '$ARGS.positional' --args ${os[@]})" >> $GITHUB_OUTPUT
outputs:
os: ${{ steps.setup-os-matrix.outputs.os }}
Expand Down

0 comments on commit 8a7bb5a

Please sign in to comment.