Skip to content

Commit 9353d77

Browse files
authored
Only run CI on Ubuntu (#260)
1 parent 7e1eb53 commit 9353d77

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ on:
1919
jobs:
2020
build:
2121
timeout-minutes: 10
22-
runs-on: ${{ matrix.os }}
23-
strategy:
24-
matrix:
25-
os: [ubuntu-latest, windows-latest, macOS-latest]
22+
runs-on: ubuntu-latest
2623
outputs:
2724
name: ${{ steps.set-version.outputs.name }}
2825
version: ${{ steps.set-version.outputs.version }}
@@ -32,7 +29,7 @@ jobs:
3229
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3330
- name: Find which branch the release tag points at
3431
id: find-branch
35-
if: github.event_name == 'release' && runner.os == 'Windows'
32+
if: github.event_name == 'release'
3633
shell: bash
3734
run: |
3835
git fetch --depth=1 origin +refs/heads/*:refs/heads/*
@@ -41,7 +38,6 @@ jobs:
4138
echo "taggedbranch=$TAGGEDBRANCH" >> $GITHUB_OUTPUT
4239
- name: Set an output
4340
id: set-version
44-
if: runner.os == 'Windows'
4541
shell: bash
4642
run: |
4743
set -x
@@ -72,17 +68,16 @@ jobs:
7268
with:
7369
run: npm run test
7470
- name: Build package
75-
if: runner.os == 'Windows'
7671
run: |
7772
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
7873
- uses: actions/[email protected]
79-
if: (runner.os == 'Windows') && (github.event_name != 'release')
74+
if: github.event_name != 'release'
8075
with:
8176
name: ${{ steps.set-version.outputs.name }}.vsix
8277
path: ${{ steps.set-version.outputs.name }}.vsix
8378
beta:
8479
if: (github.event_name == 'push')
85-
runs-on: windows-latest
80+
runs-on: ubuntu-latest
8681
needs: build
8782
steps:
8883
- uses: actions/[email protected]
@@ -100,7 +95,7 @@ jobs:
10095
publish:
10196
needs: build
10297
if: github.event_name == 'release' && needs.build.outputs.taggedbranch == 'master'
103-
runs-on: windows-latest
98+
runs-on: ubuntu-latest
10499
steps:
105100
- uses: actions/checkout@v3
106101
with:

.github/workflows/prerelease.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ on:
1919
jobs:
2020
build:
2121
timeout-minutes: 10
22-
runs-on: ${{ matrix.os }}
23-
strategy:
24-
matrix:
25-
os: [ubuntu-latest, windows-latest, macOS-latest]
22+
runs-on: ubuntu-latest
2623
outputs:
2724
name: ${{ steps.set-version.outputs.name }}
2825
version: ${{ steps.set-version.outputs.version }}
@@ -32,7 +29,7 @@ jobs:
3229
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3330
- name: Find which branch the release tag points at
3431
id: find-branch
35-
if: github.event_name == 'release' && runner.os == 'Windows'
32+
if: github.event_name == 'release'
3633
shell: bash
3734
run: |
3835
git fetch --depth=1 origin +refs/heads/*:refs/heads/*
@@ -41,7 +38,6 @@ jobs:
4138
echo "taggedbranch=$TAGGEDBRANCH" >> $GITHUB_OUTPUT
4239
- name: Set an output
4340
id: set-version
44-
if: runner.os == 'Windows'
4541
shell: bash
4642
run: |
4743
set -x
@@ -72,17 +68,16 @@ jobs:
7268
with:
7369
run: npm run test
7470
- name: Build pre-release package
75-
if: runner.os == 'Windows'
7671
run: |
7772
npx vsce package --pre-release -o ${{ steps.set-version.outputs.name }}.vsix --githubBranch prerelease
7873
- uses: actions/[email protected]
79-
if: (runner.os == 'Windows') && (github.event_name != 'release')
74+
if: github.event_name != 'release'
8075
with:
8176
name: ${{ steps.set-version.outputs.name }}.vsix
8277
path: ${{ steps.set-version.outputs.name }}.vsix
8378
beta:
8479
if: (github.event_name == 'push')
85-
runs-on: windows-latest
80+
runs-on: ubuntu-latest
8681
needs: build
8782
steps:
8883
- uses: actions/[email protected]
@@ -102,7 +97,7 @@ jobs:
10297
publish:
10398
needs: build
10499
if: github.event_name == 'release' && needs.build.outputs.taggedbranch == 'prerelease'
105-
runs-on: windows-latest
100+
runs-on: ubuntu-latest
106101
steps:
107102
- uses: actions/checkout@v3
108103
with:

0 commit comments

Comments
 (0)