2021-09-19 20:20:56 +06:00
|
|
|
name: Build binaries
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-09-20 15:24:11 +06:00
|
|
|
|
2021-11-20 19:14:59 +06:00
|
|
|
- name: Install compilers
|
|
|
|
run: |
|
|
|
|
sudo apt update ; sudo apt install -y gcc-mingw-w64-i686 gcc-mingw-w64-x86-64
|
|
|
|
|
2021-09-19 20:20:56 +06:00
|
|
|
- name: Compile
|
|
|
|
run: |
|
2021-09-20 15:24:11 +06:00
|
|
|
./bundle_calibre_plugin.sh
|
2021-09-19 20:20:56 +06:00
|
|
|
|
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: linux
|
|
|
|
path: |
|
2021-09-20 15:24:11 +06:00
|
|
|
calibre-plugin.zip
|
2021-12-19 04:53:51 +06:00
|
|
|
|
|
|
|
test-linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2021-12-20 03:13:19 +06:00
|
|
|
# Require cryptography >= 3.1 because in 3.0 and below, the backend param in load_key_and_certificates was still required.
|
|
|
|
pip3 install freezegun lxml pycryptodome rsa oscrypto "cryptography>=3.1"
|
2021-12-19 04:53:51 +06:00
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
cd tests && ./main.py
|
|
|
|
|