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 b64c62f
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 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 Expand Up @@ -152,9 +133,9 @@ jobs:
strategy:
matrix:
os: ${{ fromJson(needs.setup-os-matrix.outputs.os) }}
library: [ILGPU, ILGPU.Algorithms, ILGPU.Analyzers]
framework: [net6.0, net7.0, net8.0]
flavor: [CPU, Velocity]
library: [ILGPU]
framework: [net8.0]
flavor: [Velocity]
exclude:
- library: ILGPU.Algorithms
flavor: Velocity
Expand Down

0 comments on commit b64c62f

Please sign in to comment.