mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-11-16 19:56:11 +06:00
42 lines
948 B
YAML
42 lines
948 B
YAML
name: Build binaries
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install compilers
|
|
run: |
|
|
sudo apt update ; sudo apt install -y gcc-mingw-w64-i686 gcc-mingw-w64-x86-64
|
|
|
|
- name: Compile
|
|
run: |
|
|
./bundle_calibre_plugin.sh
|
|
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: linux
|
|
path: |
|
|
calibre-plugin.zip
|
|
|
|
test-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
# 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"
|
|
|
|
- name: Run tests
|
|
run: |
|
|
cd tests && ./main.py
|
|
|