Skip to content

Commit

Permalink
Only run CI on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Jul 1, 2024
1 parent 5dcb407 commit e612c66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,19 @@ name: Continuous Integration
on: pull_request

env:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
build:
name: Build
if: "!contains(github.event.head_commit.message, 'skip-ci')"
strategy:
matrix:
kind: ['linux', 'windows', 'macOS']
include:
- kind: linux
os: ubuntu-latest
- kind: windows
os: windows-latest
- kind: macOS
os: macos-latest
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Get Git tags'
run: git fetch --tags
shell: bash

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4

Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ on:
- main

env:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
Expand All @@ -22,18 +20,13 @@ jobs:

build:
name: Publish
if: "!contains(github.event.head_commit.message, 'skip-ci')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Get Git tags'
run: git fetch --tags
shell: bash

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4

Expand Down

0 comments on commit e612c66

Please sign in to comment.