-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (41 loc) · 1.07 KB
/
ci.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
name: CI
on:
push:
branches: [ master ]
jobs:
build_ed25519:
name: Build ed25519 library
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run cmake
working-directory: android
run: |
cmake .
make
- name: Upload artifact
if: success()
uses: actions/upload-artifact@v1
with:
name: libraries
path: android/libed25519_blake2b.so
run_tests:
name: Run tests
needs: build_ed25519
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Download library
uses: actions/download-artifact@v2
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.0.5'
channel: 'stable'
- name: Set workspace in env
run: echo "WORKSPACE=$(echo ${GITHUB_WORKSPACE})" >> $GITHUB_ENV
- name: Run tests
env:
ED215519_SO_FILE: ${{ env.WORKSPACE }}/libraries/libed25519_blake2b.so
run: |
flutter pub get
flutter test