Skip to content

Update actions

Update actions #33

Workflow file for this run

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.2.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.2.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@main
- 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.2.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@main
- 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.2.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@main
- 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