Skip to content

Commit 9f2f5f0

Browse files
committed
fix hk_ensure_path for Windows
1 parent 653ee2c commit 9f2f5f0

File tree

9 files changed

+93
-2930
lines changed

9 files changed

+93
-2930
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/macos.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
macos-build:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Configure CMake and build
15+
run: ${{ github.workspace }}/scripts/build.sh
16+
- name: Running tests
17+
run: |
18+
${{ github.workspace }}/scripts/test.sh
19+
env:
20+
HOOK_HOME: ${{ github.workspace }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99

1010
ubuntu-release:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Configure CMake and build for release

.github/workflows/ubuntu.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
ubuntu-build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Configure CMake and build
15+
run: ${{ github.workspace }}/scripts/build.sh
16+
- name: Running tests
17+
run: |
18+
${{ github.workspace }}/scripts/test.sh
19+
env:
20+
HOOK_HOME: ${{ github.workspace }}
21+
- name: Code coverage
22+
run: |
23+
gcov src/*.c
24+
bash <(curl -s https://codecov.io/bash)
25+
env:
26+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/windows.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
windows-build:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Add msbuild to PATH
15+
uses: microsoft/setup-msbuild@v1.1
16+
- name: Configure CMake and build
17+
run: ${{ github.workspace }}/scripts/build.bat
18+
- name: Running tests
19+
run: |
20+
${{ github.workspace }}/scripts/test.bat
21+
env:
22+
HOOK_HOME: ${{ github.workspace }}

0 commit comments

Comments
 (0)