Support of arm64 (#563) #49
Workflow file for this run
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: Build and Release | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
runs-on: ${{ matrix.config.runner }} | |
strategy: | |
matrix: | |
config: | |
- runner: ubuntu-20.04 | |
image: ubuntu:20.04 | |
- runner: ubuntu-22.04-arm | |
image: ubuntu:22.04 | |
container: | |
image: ${{ matrix.config.image }} | |
options: --privileged | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Print configuration | |
run: echo "Running build on ${{ matrix.config }}" | |
- name: Install dependencies | |
run: | | |
export DEBIAN_FRONTEND="noninteractive" | |
apt-get update | |
apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick gcc | |
- name: Build pkg2appimage | |
run: | | |
bash -ex dogfeeding.sh | |
- name: Test to create neoVim AppImage | |
run: | | |
chmod +x ./out/pkg2appimage*.AppImage* | |
./out/pkg2appimage*.AppImage* recipes/neovim.yml | |
- name: Verify AppImage Creation and Test | |
run: | | |
if ls out/neovim-*.AppImage 1> /dev/null 2>&1; then | |
echo "Neovim AppImage successfully created." | |
./out/neovim-*.AppImage --version | tee version_output.txt | |
if grep -q "NVIM" version_output.txt && grep -q "Build type: Release" version_output.txt; then | |
echo "Neovim AppImage test passed." | |
else | |
echo "Neovim AppImage test failed: Version output is incorrect." >&2 | |
exit 1 | |
fi | |
else | |
echo "Failed to create Neovim AppImage." >&2 | |
exit 1 | |
fi | |
- name: Release | |
run: | | |
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh | |
bash upload.sh ./out/pkg2appimage*.AppImage* |