buildenv update #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/krpc/buildenv:3.3.0 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.github_token }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: bazel | |
run: buildifier -mode check -lint warn -r . | |
- name: csharp | |
run: dotnet format KRPC.Core.sln --verify-no-changes --exclude bazel-bin | |
build-krpc-core-linux: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/krpc/buildenv:3.3.0 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.github_token }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: fetch | |
uses: krpc/krpc-core/.github/actions/bazel-fetch@action-bazel-fetch-v1 | |
- name: build | |
run: > | |
bazel build | |
//core | |
//tools/test_server | |
//tools/service_definitions | |
build-krpc-core-windows: | |
runs-on: windows-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: build | |
run: > | |
bazel --bazelrc=.github/workflows/bazelrc build | |
//core | |
//tools/test_server | |
//tools/service_definitions | |
build-krpc-core-sln-linux: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/krpc/buildenv:3.3.0 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.github_token }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: fetch | |
uses: krpc/krpc-core/.github/actions/bazel-fetch@action-bazel-fetch-v1 | |
- name: deps | |
run: bazel build //:csproj | |
- name: build | |
run: dotnet build KRPC.Core.sln | |
build-krpc-core-sln-windows: | |
runs-on: windows-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: deps | |
run: bazel --bazelrc=.github/workflows/bazelrc build //:csproj | |
- name: build | |
run: dotnet build KRPC.Core.sln | |
test-krpc-core-linux: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/krpc/buildenv:3.3.0 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.github_token }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: fetch | |
uses: krpc/krpc-core/.github/actions/bazel-fetch@action-bazel-fetch-v1 | |
- name: test | |
run: bazel test //core:test | |
# Skip for now, see issue #3 | |
# test-krpc-core-windows: | |
# runs-on: windows-latest | |
# steps: | |
# - name: checkout | |
# uses: actions/checkout@v4 | |
# - name: test | |
# run: bazel --bazelrc=.github/workflows/bazelrc test //core:test |