Skip to content

Work around locale error on startup. #41

Work around locale error on startup.

Work around locale error on startup. #41

Workflow file for this run

name: Tagged Packages
on:
push:
tags:
- '[0-9]+.[0-9]+*'
jobs:
build:
runs-on: ubuntu-20.04
if: github.repository == 'redis/redis-snap'
steps:
- uses: actions/checkout@v3
- name: Determine version
run: |
echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
repository: redis/redis
ref: ${{ env.VERSION }}
path: redis
- name: Prepare for cross-compilation
run: |
sudo dpkg --add-architecture arm64
sudo sed -i 's/^deb /deb [arch=amd64] /g' /etc/apt/sources.list
cat <<_END_ | sudo tee /etc/apt/sources.list.d/crosscompile.list
deb [arch=arm64] http://ports.ubuntu.com $(lsb_release -cs) main universe
deb [arch=arm64] http://ports.ubuntu.com $(lsb_release -cs)-updates main universe
_END_
- name: Setup Snapcraft
run: |
sudo snap install snapcraft --classic
- name: Build amd64
env:
SNAPCRAFT_BUILD_ENVIRONMENT: host
SNAPCRAFT_BUILD_INFO: 1
run: snapcraft --target-arch amd64 --destructive-mode --enable-experimental-target-arch
- name: Build arm64
env:
SNAPCRAFT_BUILD_ENVIRONMENT: host
SNAPCRAFT_BUILD_INFO: 1
run: snapcraft --target-arch arm64 --destructive-mode --enable-experimental-target-arch
- name: Upload
run: |
for f in *.snap; do snapcraft upload --release=stable $f; done
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAP_TOKEN}}