-
Notifications
You must be signed in to change notification settings - Fork 146
30 lines (29 loc) · 1.05 KB
/
check-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# This workflow checks if the build (compilation) succeeds without any errors.
# Although the build is done in CircleCI as well, to speed up the build time
# some checks are turned off in CircleCI. To conduct the complete checks
# there should be this separated workflow.
# See also the below issues:
# - https://github.com/planetarium/libplanet/pull/979
# - https://github.com/planetarium/libplanet/pull/977
# - https://github.com/planetarium/libplanet/issues/976
on:
push: null
pull_request: null
name: check-build
jobs:
build:
name: check-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
if: github.event_name != 'pull_request'
- uses: actions/checkout@main
if: github.event_name == 'pull_request'
with:
ref: ${{ github.pull_request.head.sha }}
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- run: 'hooks/pre-commit'
- run: 'dotnet pack -p:SkipSonar=false -p:_IsPacking=true'