Skip to content

Commit 9bf4c72

Browse files
committed
Swift: split codegen action and fix dependencies
1 parent de0fa9e commit 9bf4c72

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

.github/workflows/swift-codegen.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Swift: Check code generation"
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "swift/**"
7+
- .github/workflows/swift-codegen.yml
8+
branches:
9+
- main
10+
11+
jobs:
12+
codegen:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-python@v3
17+
with:
18+
python-version: '~3.7'
19+
cache: 'pip'
20+
- uses: ./.github/actions/fetch-codeql
21+
- uses: bazelbuild/setup-bazelisk@v2
22+
- name: Check code generation
23+
run: |
24+
pip install -r swift/codegen/requirements.txt
25+
bazel run //swift/codegen
26+
git add .
27+
git diff --exit-code --stat HEAD

.github/workflows/swift-qltest.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@ defaults:
1212
working-directory: swift
1313

1414
jobs:
15-
codegen:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v2
19-
- uses: ./.github/actions/fetch-codeql
20-
- uses: bazelbuild/setup-bazelisk@v2
21-
- name: Check code generation
22-
run: |
23-
bazel run //swift/codegen
24-
git add .
25-
git diff --exit-code --stat HEAD
2615
qlformat:
2716
runs-on: ubuntu-latest
2817
steps:

0 commit comments

Comments
 (0)