Skip to content

Commit

Permalink
Fix typos and build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiebeckley committed Jan 26, 2023
1 parent 791f927 commit f18aee4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/bazel-build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Bazel build

on:
pull_request:

permissions: read-all

jobs:
bazel-build:
name: Build and run tests using Bazel
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Clone submodules
run: git submodule update --init --recursive
- name: Mount Bazel cache
uses: actions/cache@v3
with:
path: ~/.bazel/cache
key: bazel-cache-${{ runner.os }}
- name: Build
run: bazel --output_user_root=~/.bazel/cache build :all
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Switch to pull request branch and clone submodules
run: |
git checkout ${GITHUB_SHA}
git submodule update --init --recursive
- name: Clone submodules
run: git submodule update --init --recursive
- name: Build
run: |
mkdir build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,22 @@ permissions: read-all

jobs:
windows-build:
name: Build and run unit tests on Windows
name: Build and run tests on Windows using CMake
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Switch to pull request branch and clone submodules
run: |
git checkout ${GITHUB_SHA}
git submodule update --init --recursive
- name: Clone submodules
run: git submodule update --init --recursive
- name: Build
run: |
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A x64 -DSPIRV_REFLECT_BUILD_TESTS=ON
cmake -G "Visual Studio 17 2022" -A x64 -DSPIRV_REFLECT_BUILD_TESTS=ON ..
cmake --build . --config Release -- /nologo /verbosity:minimal /maxcpucount
- name: Run unit tests
run: |
cd build
./test-spirv-reflect.exe
./build/Release/test-spirv-reflect.exe

0 comments on commit f18aee4

Please sign in to comment.