-
Notifications
You must be signed in to change notification settings - Fork 29
31 lines (31 loc) · 886 Bytes
/
lint.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
name: Lint code
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
env:
CARBON_VERSION: "1.32.1"
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Carbon
run: |
mkdir /tmp/carbon
pushd /tmp/carbon
wget https://csspeechstorage.blob.core.windows.net/drop/$CARBON_VERSION/SpeechSDK-Linux-$CARBON_VERSION.tar.gz
tar xzf SpeechSDK-Linux-$CARBON_VERSION.tar.gz
rm SpeechSDK-Linux-$CARBON_VERSION.tar.gz
ln -s SpeechSDK-Linux-$CARBON_VERSION current
popd
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
env:
CGO_CFLAGS: "-I/tmp/carbon/current/include/c_api"
CGO_LDFLAGS: "-L/tmp/carbon/current/lib/x64 -lMicrosoft.CognitiveServices.Speech.core"