Linux + OSX pipeline
This commit is contained in:
+39
-17
@@ -1,20 +1,42 @@
|
|||||||
|
|
||||||
language: rust
|
language: rust
|
||||||
rust:
|
rust:
|
||||||
- nightly
|
- nightly
|
||||||
script:
|
jobs:
|
||||||
- cd backend
|
include:
|
||||||
- cargo test -- --test-threads 1
|
- os: linux
|
||||||
- cargo build --release --verbose
|
script:
|
||||||
- cd ..
|
- sudo apt-get install python3-venv
|
||||||
before_deploy:
|
- python3 -m venv env
|
||||||
- tar cvf albion-stats.tar --exclude='gui/src/__pycache__' frontend backend/target/release/liblibaostats.so
|
- . env/bin/activate
|
||||||
deploy:
|
- pip install -v -r frontend/requirements.txt
|
||||||
provider: releases
|
- pyinstaller -F -w -i assets/albion-stats-icon.ico --add-data frontend/src/assets:src/assets frontend/albion-online-stats.py
|
||||||
api_key:
|
- deactivate
|
||||||
secure: $GITHUB_TOKEN
|
before_deploy:
|
||||||
file:
|
- cp dist/albion-online-stats albion-online-stats-linux
|
||||||
- "albion-stats.tar"
|
deploy:
|
||||||
skip_cleanup: true
|
provider: releases
|
||||||
on:
|
api_key:
|
||||||
tags: true
|
secure: $GITHUB_TOKEN
|
||||||
|
file:
|
||||||
|
- albion-online-stats-linux
|
||||||
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
- os: osx
|
||||||
|
script:
|
||||||
|
- python3 -m venv env
|
||||||
|
- . env/bin/activate
|
||||||
|
- pip install -v -r frontend/requirements.txt
|
||||||
|
- pyinstaller -F -w -i assets/albion-stats-icon.ico --add-data frontend/src/assets:src/assets frontend/albion-online-stats.py
|
||||||
|
- deactivate
|
||||||
|
before_deploy:
|
||||||
|
- cp dist/albion-online-stats albion-online-stats-osx
|
||||||
|
deploy:
|
||||||
|
provider: releases
|
||||||
|
api_key:
|
||||||
|
secure: $GITHUB_TOKEN
|
||||||
|
file:
|
||||||
|
- albion-online-stats-osx
|
||||||
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
|||||||
Reference in New Issue
Block a user