Skip to content

Commit

Permalink
Bump snap core18 to core20
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver authored Feb 11, 2024
1 parent b7b425d commit d197105
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
uses: wabarc/.github/.github/workflows/reusable-builder-snap.yml@main
with:
product: wayback
channel: edge
channel: stable
publish: ${{ github.repository == 'wabarc/wayback' && github.event_name == 'push' }}
egress-policy: audit
secrets:
Expand Down
21 changes: 16 additions & 5 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,34 @@ description: |
A toolkit for snapshot webpage to the Wayback Machine.
Website https://github.com/wabarc/wayback
base: core18
base: core20
grade: stable
confinement: strict
compression: lzo

architectures:
#- build-on: [i386, amd64, arm64, armhf, ppc64el, s390x]
- build-on: amd64
- amd64
- arm64
- armhf
- i386

parts:
wayback:
plugin: go
source: https://github.com/wabarc/wayback.git
go-importpath: github.com/wabarc/wayback/cmd/wayback
override-build: |
make build
install $SNAPCRAFT_PART_BUILD/build/binary/wayback -D $SNAPCRAFT_PART_INSTALL/bin/wayback
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
if [ ! -e $SNAPCRAFT_PART_INSTALL/bin/wayback ]; then
ln -s $SNAPCRAFT_PART_INSTALL/bin/wayback $SNAPCRAFT_PART_INSTALL/bin/wayback
fi
build-packages:
- build-essential

apps:
wayback:
command: wayback
command: bin/wayback
plugs:
- home
- network
Expand Down

0 comments on commit d197105

Please sign in to comment.