Skip to content

2.3.1

2.3.1 #155

name: Build ghost linux
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7]
os: [ubuntu-16.04, ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
sudo apt-get install -y python3-setuptools
- name: Setup gcc
if: matrix.os == 'ubuntu-16.04'
run: |
sudo apt-get update
sudo apt-get install gcc-7
sudo apt-get install g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7
gcc -v
g++ -v
# using https://github.com/InVisionApp/private-action-loader for private repo.
- name: Install Beamify
uses: invisionapp/private-action-loader@v3
with:
pal-repo-token: ${{ secrets.REPO_TOKEN }}
pal-repo-name: flux3dp/beamify@master
- name: Install Fluxsvg
uses: flux3dp/fluxsvg@master
- name: Install FluxClient
uses: invisionapp/private-action-loader@v3
with:
pal-repo-token: ${{ secrets.REPO_TOKEN }}
pal-repo-name: flux3dp/fluxclient-dev@develop
- name: Build Flux Api
run: |
bash -c "set -e 1; export LC_ALL=\"en_US.UTF-8\"; export LC_CTYPE=\"en_US.UTF-8\"; printenv; python ghost.py --test --without_pcl"
bash -c "set -e 1; export LC_ALL=\"en_US.UTF-8\"; export LC_CTYPE=\"en_US.UTF-8\"; pyinstaller --clean ghost-github-action.spec"
./dist/flux_api/flux_api --test --without_pcl
- name: Cleanup artifacts
run: |
mkdir artifacts
7z a -r flux_api.zip dist/flux_api
mv flux_api.zip artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: ${{matrix.os}}
path: artifacts