mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Swift: publish C++ generated code as artifacts
This commit is contained in:
18
.github/workflows/swift-codegen.yml
vendored
18
.github/workflows/swift-codegen.yml
vendored
@@ -18,8 +18,24 @@ jobs:
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
bazel test //swift/codegen/test --test_output=errors
|
||||
- name: Check that code was generated
|
||||
- name: Check that QL generated code was checked in
|
||||
run: |
|
||||
bazel run //swift/codegen
|
||||
git add swift
|
||||
git diff --exit-code --stat HEAD
|
||||
- name: Generate C++ files
|
||||
run: |
|
||||
bazel run //swift/codegen:trapgen -- --cpp-output=$PWD
|
||||
bazel run //swift/codegen:cppgen -- --cpp-output=$PWD
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: TrapEntries.h
|
||||
path: TrapEntries.h
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: TrapTags.h
|
||||
path: TrapTags.h
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: TrapClasses.h
|
||||
path: TrapClasses.h
|
||||
|
||||
Reference in New Issue
Block a user