diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f14d84d..7a78091 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,14 +7,12 @@ on: branches: [ master ] jobs: - build: - + test: runs-on: ubuntu-latest strategy: matrix: os: [ubuntu-latest] python-version: [3.7, 3.8] - steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -27,3 +25,25 @@ jobs: run: pip install . - name: Run tests run: bash .github/workflows/test.sh + build-static: + runs-on: ubuntu-18.04 + needs: [test] + steps: + - uses: actions/checkout@v2 + - name: Install build tools + run: | + sudo apt -qqy update && sudo apt -qqy install patchelf build-essential python3-pip git zlib1g-dev python3-setuptools python3-venv python3-wheel + git clone https://github.com/pyinstaller/pyinstaller.git + cd pyinstaller/bootloader && CC="gcc -no-pie" python3 waf configure all && cd - + cd pyinstaller && sudo python3 setup.py install && cd - + sudo pip3 install staticx + - name: Install tuttest dependencies + run: python setup.py egg_info && pip3 install -r *.egg-info/requires.txt + - name: Build static binary + run: | + pyinstaller -F bin/tuttest + staticx dist/tuttest tuttest_static + - uses: actions/upload-artifact@v2 + with: + name: tuttest_static + path: tuttest_static