This repository was archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
91 lines (71 loc) · 1.97 KB
/
ci.yml
File metadata and controls
91 lines (71 loc) · 1.97 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: prep-macos
if: matrix.os == 'macos-latest'
run: |
brew install z3
wget http://bin.zetz.it.s3-eu-west-1.amazonaws.com/zz-master-macos.zip
unzip zz*.zip
- name: prep-ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y z3
wget http://bin.zetz.it.s3-eu-west-1.amazonaws.com/zz-master-ubuntu.zip
unzip zz*.zip
- name: build
run: |
export "PATH=$PATH:$(go env GOPATH)/bin:$PWD/target/release/"
cd core
zz clean
zz test
cd ../go
go test
cd ../cli
go test
go build
go get github.com/GeertJohan/go.rice
go get github.com/GeertJohan/go.rice/rice
rice append --exec cli -i github.com/devguardio/carrier/cli/conduit
- name: artifact-ubuntu
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v2
with:
name: carrier-1.0-x86_64-pc-linux
path: cli/cli
- name: artifact-osx
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: carrier-1.0-x86_64-pc-osx
path: cli/cli
#- name: Snapshot
# if: matrix.os == 'ubuntu-16.04'
# run: |
# export "PATH=$PATH:$PWD/target/release/"
# git config --local user.email "snapbot@devguard.io"
# git config --local user.name "Snapshot Bot"
# git add go/core -f
# git commit -m "snapshot"
#- name: Push changes
# if: matrix.os == 'ubuntu-16.04'
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}