Skip to content

Commit

Permalink
Merge PR #3 from packwallet/wip/vanillaBuildCI
Browse files Browse the repository at this point in the history
Fix build with vanilla dotnet7.
  • Loading branch information
siwatanejo committed Mar 10, 2024
2 parents 572d48a + fad3481 commit 7865439
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/CI.yml
Expand Up @@ -3,7 +3,33 @@ name: CI
on: [push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"

steps:
- uses: actions/checkout@v1
- 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
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 dotnet7
- name: Build
run: dotnet build

build_snap:
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
Expand Down
1 change: 1 addition & 0 deletions src/PackWallet/PackWallet.fsproj
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 7865439

Please sign in to comment.