From 650ec05690723739492302c5d49323befc297795 Mon Sep 17 00:00:00 2001
From: siwatanejo <7511840+siwatanejo@users.noreply.github.com>
Date: Sun, 10 Mar 2024 19:10:13 +0100
Subject: [PATCH 1/2] CI: new step for vanilla dotnet
---
.github/workflows/CI.yml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 3dae6e0..acd6d79 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -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
From fad3481ccc9510b86495523b04a732e9bd4de2cd Mon Sep 17 00:00:00 2001
From: siwatanejo <7511840+siwatanejo@users.noreply.github.com>
Date: Sun, 10 Mar 2024 19:13:46 +0100
Subject: [PATCH 2/2] Fix build with vanilla dotnet7
---
src/PackWallet/PackWallet.fsproj | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PackWallet/PackWallet.fsproj b/src/PackWallet/PackWallet.fsproj
index 0f4cd0f..540d02e 100644
--- a/src/PackWallet/PackWallet.fsproj
+++ b/src/PackWallet/PackWallet.fsproj
@@ -3,6 +3,7 @@
Exe
net7.0
+ true