forked from facebookincubator/Glean
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
49 lines (48 loc) · 1.61 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
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: CI
on: [push, pull_request]
jobs:
ci:
strategy:
fail-fast: false
matrix:
ghc: [8.4.4, 8.6.5, 8.8.4, 8.10.2]
runs-on: ubuntu-latest
container:
image: ghcr.io/facebookincubator/hsthrift/ci-base:ghcup
options: --cpus 2
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install GHC ${{ matrix.ghc }}
run: ghcup install ghc ${{ matrix.ghc }} --set
- name: Install cabal-install 3.6
run: ghcup install cabal -u https://downloads.haskell.org/~cabal/cabal-install-3.6.0.0/cabal-install-3.6.0.0-x86_64-linux.tar.xz 3.6.0.0 --set
- name: Add GHC and cabal to PATH
run: echo "$HOME/.ghcup/bin" >> $GITHUB_PATH
- name: Install RocksDB/libxxhash
run: apt-get install -y librocksdb-dev libxxhash-dev
- name: Get hsthrift and build/install its dependencies
run: ./install_deps.sh
- name: Populate hackage index
run: cabal update
- name: Build hsthrift/Glean
run: make
- name: Run Glean tests
run: make test
vscode:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
- name: Build VS Code extension
run: npx vsce package
working-directory: glean/vscode
- name: Archive .vsix extension file
uses: actions/upload-artifact@v2
with:
name: glean-vsix
path: |
glean/vscode/*.vsix