Skip to content

Commit

Permalink
CI: build snap packages with stockdotnet6+xbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
aarani committed Aug 21, 2023
1 parent 3e4e51d commit c5ce5d3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -634,18 +634,19 @@ jobs:
needs:
- conventions

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: Install snap tools
run: |
sudo apt update
sudo ./scripts/install_mono_from_microsoft_deb_packages.sh
sudo apt install --yes git make dotnet6 mono-xbuild fsharp
sudo apt install -y libgtk2.0-cil-dev
./scripts/install_snapcraft.sh
# hack to disable dotnet detection (can't use apt purge because github VM seems to have it installed in different way)
- name: HACK to emulate dotnet uninstall
run: sudo rm `which dotnet`
- name: HACK to emulate msbuild uninstall
run: sudo rm `which msbuild`

- name: Generate snap package
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/snap_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euxo pipefail

# this is the equivalent of using the 'build-packages' (not stage-packages) section in snapcraft
# but as we're not using the 'make' plugin, we need to this manually now
DEBIAN_FRONTEND=noninteractive sudo apt install -y fsharp build-essential pkg-config cli-common-dev mono-devel libgtk2.0-cil-dev
DEBIAN_FRONTEND=noninteractive sudo apt install -y fsharp build-essential pkg-config cli-common-dev mono-xbuild libgtk2.0-cil-dev dotnet6


./configure.sh --prefix=./staging
Expand Down
2 changes: 1 addition & 1 deletion scripts/snap_build_and_upload_as_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ docker exec snappy make install

# Install snapcraft and dependencies
docker exec snappy snap version
docker exec snappy snap install core20
docker exec snappy snap install core22
docker exec snappy snap install --classic --stable snapcraft
docker exec snappy snapcraft --version

Expand Down
4 changes: 1 addition & 3 deletions scripts/snap_install_as_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN apt update &&\
DEBIAN_FRONTEND=noninteractive\
apt install -y fuse snapd snap-confine squashfuse sudo init lsb-release git docker.io build-essential pkg-config curl &&\
apt install -y dotnet6 mono-xbuild fsharp fuse snapd snap-confine squashfuse sudo init lsb-release git docker.io build-essential pkg-config curl &&\
apt install -y libgtk2.0-cil-dev &&\
apt clean &&\
dpkg-divert --local --rename --add /sbin/udevadm &&\
Expand Down Expand Up @@ -133,7 +133,5 @@ echo " done"
$SUDO docker exec $CONTNAME snap install core || clean_up
echo "container $CONTNAME started ..."

$SUDO docker exec $CONTNAME scripts/install_mono_from_microsoft_deb_packages.sh

print_info
rm_builddir
7 changes: 4 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: geewallet
base: core20 # the base snap is the execution environment for this snap
base: core22 # the base snap is the execution environment for this snap
version: '0.4.381.0' # just for humans, typically '1.2+git' or '1.3.2'
summary: minimalistic cryptocurrency brainwallet # 79 char long summary
description: |
Expand Down Expand Up @@ -33,7 +33,9 @@ parts:
plugin: dump
source: ./staging
stage-packages:
- mono-devel
- dotnet6
- mono-xbuild
- fsharp
- libgtk2.0-cil

certs:
Expand All @@ -51,7 +53,6 @@ parts:
- libgtk2.0-dev
stage-packages:
- libxkbcommon0 # XKB_CONFIG_ROOT
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
Expand Down

0 comments on commit c5ce5d3

Please sign in to comment.