From e612c66fe88a1c4859104179a0f80fb74e9c782b Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Mon, 1 Jul 2024 21:42:02 +0200 Subject: [PATCH] Only run CI on Linux --- .github/workflows/ci.yaml | 19 +------------------ .github/workflows/publish.yaml | 7 ------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0d1cc20..0c0d0a8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e2d8ad7..58b4915 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: @@ -22,7 +20,6 @@ jobs: build: name: Publish - if: "!contains(github.event.head_commit.message, 'skip-ci')" runs-on: ubuntu-latest steps: - name: Checkout @@ -30,10 +27,6 @@ jobs: with: fetch-depth: 0 - - name: 'Get Git tags' - run: git fetch --tags - shell: bash - - name: Setup .NET SDK uses: actions/setup-dotnet@v4