-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (43 loc) · 1.55 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: build
on: [push, pull_request]
jobs:
build:
name: build
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- { os: ubuntu-latest }
- { os: macos-latest }
- { os: windows-latest }
steps:
- uses: actions/checkout@v1
- name: ubuntu
if: matrix.config.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install libsecret-1-dev xvfb dbus-x11 gnome-keyring
# `secret-tool` (https://gitlab.gnome.org/GNOME/libsecret) does not support creating keyrings,
# so we need to fall back to the deprecated `python-gnomekeyring`
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 40976EAF437D05B5 3B4FE6ACC0B21F32
sudo apt update
sudo apt install -t xenial python-gnomekeyring
dbus-launch /usr/bin/python -c "import gnomekeyring;gnomekeyring.create_sync('login', '');"
Xvfb :99 &
- name: install rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.48.0
default: true
- name: build
shell: bash
run: |
# enable symlinking for windows
# (required because of patched cxx crate)
export MSYS=winsymlinks:nativestrict
git config --global core.symlinks true
export DISPLAY=":99"
git submodule update --init
cargo test
cargo build