Swift: split codegen action and fix dependencies

This commit is contained in:
Paolo Tranquilli 2022-04-25 14:00:41 +02:00
Родитель de0fa9e456
Коммит 9bf4c72085
2 изменённых файлов: 27 добавлений и 11 удалений

27
.github/workflows/swift-codegen.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,27 @@
name: "Swift: Check code generation"
on:
pull_request:
paths:
- "swift/**"
- .github/workflows/swift-codegen.yml
branches:
- main
jobs:
codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '~3.7'
cache: 'pip'
- uses: ./.github/actions/fetch-codeql
- uses: bazelbuild/setup-bazelisk@v2
- name: Check code generation
run: |
pip install -r swift/codegen/requirements.txt
bazel run //swift/codegen
git add .
git diff --exit-code --stat HEAD

11
.github/workflows/swift-qltest.yml поставляемый
Просмотреть файл

@ -12,17 +12,6 @@ defaults:
working-directory: swift
jobs:
codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/fetch-codeql
- uses: bazelbuild/setup-bazelisk@v2
- name: Check code generation
run: |
bazel run //swift/codegen
git add .
git diff --exit-code --stat HEAD
qlformat:
runs-on: ubuntu-latest
steps: