Skip to content

Commit

Permalink
DotNetRGS: add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aarani committed May 26, 2023
1 parent 6588748 commit a2338c4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,27 @@ jobs:
run: dotnet restore ./DotNetRGS.Server/DotNetRGS.Server.fsproj
- name: Build
run: dotnet build ./DotNetRGS.Server/DotNetRGS.Server.fsproj --no-restore
build-dotnetrgs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: install missing dependencies
run: sudo apt install --yes fsharp
- name: install last version of mono (Microsoft APT repositories)
run: sudo ./scripts/install_mono_from_microsoft_deb_packages.sh
- name: check mono version
run: mono --version
- name: Build geewallet
run: |
cd geewallet
./configure.sh
make release
- uses: nuget/setup-nuget@v1
with:
nuget-version: '6.5.0'
- name: Restore dependencies
run: nuget restore ./DotNetRGS/DotNetRGS.fsproj
- name: Build
run: msbuild ./DotNetRGS/DotNetRGS.fsproj /p:Configuration=Release
17 changes: 17 additions & 0 deletions scripts/install_mono_from_microsoft_deb_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euxo pipefail

# Microsoft's APT repository for 20.04 is same as for 22.04
#source /etc/os-release

# required by apt-key
apt install -y gnupg2
# required by apt-update when pulling from mono-project.com
apt install -y ca-certificates

# taken from http://www.mono-project.com/download/stable/#download-lin
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official-stable.list
apt update
DEBIAN_FRONTEND=noninteractive apt install -y mono-devel fsharp
mono --version

0 comments on commit a2338c4

Please sign in to comment.