File tree 3 files changed +85
-0
lines changed
3 files changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - " src/**"
7
+ - " test/**"
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-24.04
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : egor-tensin/setup-clang@v1
16
+ with :
17
+ version : latest
18
+ platform : x64
19
+ - uses : ConorMacBride/install-package@v1
20
+ with :
21
+ apt : libreadline-dev
22
+ version : latest
23
+ platform : x64
24
+ - run : |
25
+ mkdir -p build
26
+ cd build
27
+ cmake ..
28
+ make
Original file line number Diff line number Diff line change
1
+ name : patch-version
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ jobs :
7
+ patch-and-commit :
8
+ runs-on : ubuntu-24.04
9
+ steps :
10
+ - name : Check out repository code
11
+ uses : actions/checkout@v4 # by default, only fetches one commit
12
+ with :
13
+ ssh-key : ${{ secrets.GHA_DEPLOY_KEY }}
14
+ - name : Patch version information
15
+ id : patching
16
+ uses : nasa-jpl/patch-version@v3
17
+ with :
18
+ commit_msg : " ${{ github.event.head_commit.message }}"
19
+ commit_sha : " ${{ github.event.after }}"
20
+ - name : Workaround chown to deal with .git/objects owned by root instead of runner
21
+ # Allegedly, this only needs to only be done for small, new repos
22
+ run : |
23
+ sudo chown runner:docker -R .git
24
+ - name : Add and commit patched files
25
+ uses : Endbug/add-and-commit@v9
26
+ with :
27
+ add : " CMakeLists.txt"
28
+ default_author : github_actions
29
+ tag : " ${{ steps.patching.outputs.new_tag }}"
30
+ message : " [GitHub Actions] Patched version, bumped ${{ steps.patching.outputs.bumped }} number. [skip actions]"
Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - " src/**"
7
+ - " test/**"
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ test :
12
+ runs-on : ubuntu-24.04
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : egor-tensin/setup-clang@v1
16
+ - uses : ConorMacBride/install-package@v1
17
+ with :
18
+ apt : valgrind libreadline-dev
19
+ version : latest
20
+ platform : x64
21
+ - run : |
22
+ mkdir -p build
23
+ cd build
24
+ cmake -DBUILD_JSD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug ..
25
+ make
26
+ make test
27
+ env CTEST_OUTPUT_ON_FAILURE=1 make -d memcheck
You can’t perform that action at this time.
0 commit comments