-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (45 loc) · 1.51 KB
/
brgen-test.yaml
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
# costom boilerplate file from sisakulint
name: Brgen Test Built Binary
on:
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_call: null
workflow_dispatch: null
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
jobs:
brgen-test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Timeline
uses: Kesin11/actions-timeline@3046833d9aacfd7745c5264b7f3af851c3e2a619 # v2.2.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Donload Artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: brgen-linux
path: /tmp/brgen
- name: Install Dependencies
run: sudo apt-get install jq libc++-dev ninja-build -y
- name: Run Brgen
run: |
chmod -R +x /tmp/brgen
cd /tmp/brgen
. ./link_path.sh
ldd /tmp/brgen/tool/src2json
ldd /tmp/brgen/tool/libfutils.so
/tmp/brgen/tool/src2json --version
/tmp/brgen/tool/brgen -debug
- name: Clone Utils
run: |
cd /tmp/brgen
git clone https://github.com/on-keyday/utils.git
mkdir utils/lib
cp tool/libfutils.so utils/lib
- name: Test
run: |
cd /tmp/brgen
. ./link_path.sh
FUTILS_DIR=/tmp/brgen/utils tool/cmptest -f ignore/example/test_info.json -c testkit/cmptest.json --expected-test-total 8 --debug