-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.21 KB
/
integration.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: Integration tests
on:
push:
branches:
- "*"
- "!sapling-pr-archive-*"
jobs:
test_integration_linux_x86_64:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y gcc
- name: Fetch Buck2
uses: zadlg/buck2-github-composite-action@v2
- name: Initialize an empty buck2 project
run: |
mkdir example/ && cd example
buck2 init --git
mkdir rules_openssl
- name: Checkout code
uses: actions/checkout@v4
with:
path: example/rules_openssl
- name: Create the `.buckconfig` file
working-directory: example/
run: |
mv rules_openssl/.buckconfig .
sed -i 's/rules_openssl = ./rules_openssl = rules_openssl/g' .buckconfig
touch .buckroot
- name: Import `openssl_archive` symbol in main BUCK file.
working-directory: example/
run: |
echo -ne 'load("@rules_openssl//openssl:rules.bzl", "openssl_archive")' > BUCK
- name: Compile OpenSSL
working-directory: example/
run: buck2 build -- @rules_openssl//...