Skip to content

Fix typos

Fix typos #8

Workflow file for this run

# Create AppImages on a github release event. This assumes that the
# cadabra version is the same as the release name, and it will attempt
# to add the .AppImage files to the release assets.
name: AppImage
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
name: AppImage on ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
distro: ubuntu20.04
- arch: aarch64
distro: ubuntu20.04
steps:
- name: Setup GitHub CLI
run: |
sudo apt-get update
sudo apt-get install -y gh
- name: Authenticate GitHub CLI
run: gh auth setup-git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@master
name: Checkout source
- name: Native build
if: ${{ contains(matrix.arch, 'x86') }}
id: build-native
run: |
apt update -q -y
DEBIAN_FRONTEND=noninteractive apt install -y git cmake python3-dev python3-pip g++ libpcre3 libpcre3-dev libgmp3-dev libgtkmm-3.0-dev libboost-all-dev libgmp-dev libsqlite3-dev uuid-dev libmpfr-dev libmpc-dev && python3 --version && which python3 && python3 -m pip install --upgrade pip && python3 -m pip install wheel && python3 -m pip install sympy gmpy2 numpy
mkdir build
cd build
cmake -DENABLE_MATHEMATICA=OFF -DAPPIMAGE_MODE=ON -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install DESTDIR=AppDir
make appimage
mkdir -p ../artifacts
cp Cadabra*.AppImage ../artifacts
- name: QEMU build ${{ matrix.arch }}
if: ${{ !contains(matrix.arch, 'x86') }}
uses: uraimo/run-on-arch-action@master
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
githubToken: ${{ github.token }}
setup: |
mkdir -p "${PWD}/artifacts"
dockerRunArgs:
--volume "${PWD}/artifacts:/artifacts"
shell: /bin/sh
install: |
apt update -q -y
DEBIAN_FRONTEND=noninteractive apt install -y git cmake python3-dev g++ libpcre3 libpcre3-dev libgmp3-dev libgtkmm-3.0-dev libboost-all-dev libgmp-dev libsqlite3-dev uuid-dev libmpfr-dev libmpc-dev && python3 --version && which python3 && python3 -m pip install --upgrade pip && python3 -m pip install wheel && python3 -m pip install sympy gmpy2 numpy
run: |
mkdir build
cd build
cmake -DENABLE_MATHEMATICA=OFF -DAPPIMAGE_MODE=ON -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install DESTDIR=AppDir
make appimage
cp Cadabra*.AppImage /artifacts
- name: Set version variables from output of cmake
run: |
VER=$(cat ${{ github.workspace }}/build/VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Upload release assets
run: |
gh release upload "${{ env.VERSION }}" build/Cadabra2_${{ env.VERSION }}_${{ matrix.arch }}.AppImage --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}