Make it work on CI

This commit is contained in:
Philipp Hoenisch 2020-10-21 17:53:49 +11:00
parent e1d8a1c39b
commit ae1ea08bb2
No known key found for this signature in database
GPG key ID: E5F8E74C672BC666
4 changed files with 54 additions and 24 deletions

View file

@ -46,12 +46,20 @@ jobs:
build_test:
runs-on: ubuntu-latest
steps:
- name: Install tor
run: sudo apt-get tor
- name: Checkout sources
uses: actions/checkout@v2
- name: Install and stop tor in case it was running
run: |
sudo apt install software-properties-common
sudo curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | sudo gpg --import
sudo gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
sudo add-apt-repository 'deb https://deb.torproject.org/torproject.org bionic main'
sudo apt update
sudo apt install tor deb.torproject.org-keyring
sudo /etc/init.d/tor stop
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with: