umbra/.github/workflows/build.yml

67 lines
1.5 KiB
YAML
Raw Normal View History

name: Build and Test
on:
push:
branches: [ main ]
paths-ignore:
2022-06-13 11:37:18 +00:00
- 'projs/docs/**'
- 'specs/**'
jobs:
2022-06-09 20:57:56 +00:00
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
2022-06-18 15:03:30 +00:00
- name: Install bazelisk
run: |
choco install bazelisk
2022-06-18 15:03:30 +00:00
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
2022-06-18 15:03:30 +00:00
- name: Build
run: |
bazel build //...
- name: use cache
uses: actions/cache@v2
with:
2022-06-18 15:03:30 +00:00
path: "./bazel-bin/projs"
2022-06-10 12:19:27 +00:00
key: ${{ runner.os }}-${{ github.run_id }}
- name: Upload shadow-engine artifact
uses: actions/upload-artifact@v3
with:
name: ${{ needs.update.outputs.old_version_name }}-${{ needs.update.outputs.new_version_name }}-patch
2022-06-18 15:03:30 +00:00
path: './bazel-bin/projs/shadow-engine/**/*'
test-sff:
runs-on: windows-latest
2022-06-10 11:54:07 +00:00
needs: build
2022-06-10 13:25:04 +00:00
permissions:
contents: read
issues: read
checks: write
pull-requests: write
steps:
- name: use cache
uses: actions/cache@v2
with:
2022-06-18 15:03:30 +00:00
path: "./bazel-bin/projs"
2022-06-10 12:19:27 +00:00
key: ${{ runner.os }}-${{ github.run_id }}
- name: Test shadow-file-format
2022-06-18 15:03:30 +00:00
run: ./bazel-bin/projs/shadow-file-format/test.exe --gtest_output="xml:./test-results/shadow-file-format-test.xml"
2022-06-10 13:12:23 +00:00
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: "test-results/**/*.xml"