-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #7 from knocte/githubActions
Add GitHub actions CI build.
- Loading branch information
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: "ubuntu:22.04" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install required dependencies | ||
run: | | ||
apt update | ||
apt install --yes sudo | ||
sudo apt install --yes --no-install-recommends git | ||
# workaround for https://github.com/actions/runner/issues/2033 | ||
- name: ownership workaround | ||
run: git config --global --add safe.directory '*' | ||
|
||
- name: Setup .NET | ||
run: | | ||
# We need to install `ca-certificates`, otherwise we get these errors in the CI: | ||
# Unable to load the service index for source https://api.nuget.org/v3/index.json. | ||
# The SSL connection could not be established, see inner exception. | ||
# The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot | ||
apt install --yes --no-install-recommends ca-certificates | ||
apt install --yes --no-install-recommends dotnet6 | ||
- name: Compile the main solution | ||
run: dotnet build |
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
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
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