Update tailscale version #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SailfishOS build | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
env: | |
RELEASE: 4.5.0.16 | |
TAILSCALE_VERSION: 1.52.0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare | |
run: mkdir RPMS | |
- name: Build armv7hl | |
id: build_armv7hl | |
run: docker run --rm --privileged -v $PWD:/workspace coderus/sailfishos-platform-sdk:$RELEASE /bin/bash -c " | |
mkdir -p build ; | |
cd build ; | |
cp -r /workspace/* . ; | |
cd rpm ; | |
curl -O https://pkgs.tailscale.com/stable/tailscale_${TAILSCALE_VERSION}_arm.tgz ; | |
cd .. ; | |
mb2 -t SailfishOS-$RELEASE-armv7hl build --prepare ; | |
sudo mkdir -p /workspace/RPMS ; | |
sudo cp -r RPMS/*.rpm /workspace/RPMS" | |
- name: Build i486 | |
id: build_i486 | |
run: docker run --rm --privileged -v $PWD:/workspace coderus/sailfishos-platform-sdk:$RELEASE /bin/bash -c " | |
mkdir -p build ; | |
cd build ; | |
cp -r /workspace/* . ; | |
cd rpm ; | |
curl -O https://pkgs.tailscale.com/stable/tailscale_${TAILSCALE_VERSION}_386.tgz ; | |
cd .. ; | |
mb2 -t SailfishOS-$RELEASE-i486 build --prepare ; | |
sudo mkdir -p /workspace/RPMS ; | |
sudo cp -r RPMS/*.rpm /workspace/RPMS" | |
- name: Build aarch64 | |
id: build_aarch64 | |
run: docker run --rm --privileged -v $PWD:/workspace coderus/sailfishos-platform-sdk:$RELEASE /bin/bash -c " | |
mkdir -p build ; | |
cd build ; | |
cp -r /workspace/* . ; | |
cd rpm ; | |
curl -O https://pkgs.tailscale.com/stable/tailscale_${TAILSCALE_VERSION}_arm64.tgz ; | |
cd .. ; | |
mb2 -t SailfishOS-$RELEASE-aarch64 build --prepare ; | |
sudo mkdir -p /workspace/RPMS ; | |
sudo cp -r RPMS/*.rpm /workspace/RPMS" | |
- name: Upload build result | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rpms | |
path: RPMS | |
- name: Create release | |
if: contains(github.ref, 'release') | |
run: | | |
set -x | |
assets=() | |
for asset in RPMS/*.rpm; do | |
assets+=("-a" "$asset") | |
done | |
tag_name="${GITHUB_REF##*/}" | |
hub release create "${assets[@]}" -m "$tag_name" "$tag_name" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |