2020-11-02 18:36:25 +00:00
|
|
|
name: Build PRs
|
|
|
|
|
|
|
|
on:
|
2020-11-05 23:19:23 +00:00
|
|
|
pull_request:
|
2020-11-02 18:36:25 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-06-21 18:35:49 +00:00
|
|
|
- name: Set Swap Space
|
|
|
|
uses: pierotofy/set-swap-space@master
|
|
|
|
with:
|
|
|
|
swap-size-gb: 12
|
2020-11-02 18:36:25 +00:00
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Build
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
file: ./portable.Dockerfile
|
2020-11-09 17:15:53 +00:00
|
|
|
platforms: linux/amd64
|
2020-11-02 18:36:25 +00:00
|
|
|
push: false
|
|
|
|
|
|
|
|
snapcraft:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
architecture:
|
|
|
|
- amd64
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-06-21 21:11:54 +00:00
|
|
|
- name: Set Swap Space
|
|
|
|
uses: pierotofy/set-swap-space@master
|
|
|
|
with:
|
|
|
|
swap-size-gb: 12
|
2020-11-02 18:36:25 +00:00
|
|
|
- name: Build
|
|
|
|
id: build
|
|
|
|
uses: diddlesnaps/snapcraft-multiarch-action@v1
|
|
|
|
with:
|
|
|
|
architecture: ${{ matrix.architecture }}
|
|
|
|
- name: Review
|
|
|
|
uses: diddlesnaps/snapcraft-review-tools-action@v1
|
|
|
|
with:
|
|
|
|
snap: ${{ steps.build.outputs.snap }}
|
|
|
|
isClassic: 'false'
|
2021-05-21 23:59:29 +00:00
|
|
|
|
|
|
|
windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.8.1'
|
|
|
|
architecture: 'x64'
|
|
|
|
- name: Setup Visual C++
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch: x64
|
|
|
|
- name: Install venv
|
|
|
|
run: |
|
|
|
|
python -m pip install virtualenv
|
|
|
|
- name: Build sources
|
|
|
|
run: |
|
|
|
|
python configure.py build
|