Skip to content

Commit 0893ec1

Browse files
committed
use docker in github action
1 parent debd857 commit 0893ec1

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ on:
66
pull_request:
77

88
jobs:
9-
test-production:
9+
linting:
1010
runs-on: ubuntu-20.04
11-
1211
steps:
1312
- uses: actions/checkout@v3
1413

@@ -17,20 +16,22 @@ jobs:
1716
with:
1817
python-version: "3.x"
1918

20-
- name: Install development dependencies
21-
run: |
22-
pip install pre-commit==2.20.0
23-
2419
- name: Apply pre-commit
25-
run: |
26-
pre-commit run --all-files
20+
uses: pre-commit/action@v3.0.0
21+
with:
22+
extra_args: --all-files
23+
24+
test-production:
25+
runs-on: ubuntu-20.04
26+
container:
27+
image: xmba15/onnx_runtime_cpp:v1.10.0-ubuntu20.04
28+
29+
steps:
30+
- uses: actions/checkout@v3
2731

2832
- name: Setup environment
2933
run: |
3034
sudo apt-get update
31-
sudo apt-get install -y --no-install-recommends software-properties-common build-essential
32-
bash ./scripts/install_latest_cmake.bash
33-
bash ./scripts/install_onnx_runtime.bash
3435
bash ./scripts/install_apps_dependencies.bash
3536
3637
- name: Test building

0 commit comments

Comments
 (0)