Skip to content

Commit efa38ee

Browse files
[CPP-71]Fix Windows benchmark not closing.
1 parent 94c69d7 commit efa38ee

File tree

1 file changed

+141
-124
lines changed

1 file changed

+141
-124
lines changed

.github/workflows/main.yml

Lines changed: 141 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,148 @@ on:
1010

1111
jobs:
1212

13-
backend_bench:
13+
# backend_bench:
14+
15+
# name: Backend Benchmarks
16+
17+
# strategy:
18+
# matrix:
19+
# os:
20+
# - ubuntu-20.04
21+
# - macos-10.15
22+
# - windows-2019
23+
24+
# runs-on: ${{ matrix.os }}
25+
26+
# steps:
27+
28+
# - name: Checkout source
29+
# uses: actions/checkout@v2
30+
# with:
31+
# submodules: recursive
32+
# ssh-key: ${{ secrets.SSH_KEY }}
33+
# ssh-strict: false
34+
35+
# - uses: webfactory/[email protected]
36+
# with:
37+
# ssh-private-key: ${{ secrets.SSH_KEY }}
38+
39+
# - name: Run ssh-keyscan
40+
# run: ssh-keyscan github.com >> ~/.ssh/known_hosts
41+
42+
# - name: Setup SSH for Windows Git LFS
43+
# run: |
44+
# & "C:\\Program Files\\Git\\bin\\sh.exe" -c "ssh-keyscan github.com >> ~/.ssh/known_hosts"
45+
# & "C:\\Program Files\\Git\\bin\\sh.exe" -c "echo '${{ secrets.SSH_KEY }}' >> ~/.ssh/id_rsa"
46+
# if: matrix.os == 'windows-2019'
47+
48+
# - name: Install ${{ runner.os }} Dependencies.
49+
# shell: bash
50+
# run: |
51+
# if [ "$RUNNER_OS" == "Linux" ]; then
52+
# sudo apt-get install -y capnproto git-lfs
53+
# elif [ "$RUNNER_OS" == "macOS" ]; then
54+
# brew install capnp git-lfs
55+
# elif [ "$RUNNER_OS" == "Windows" ]; then
56+
# choco install -y capnproto git-lfs
57+
# fi
58+
59+
# - name: Pull Git LFS objects
60+
# run: git lfs pull
61+
# env:
62+
# GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
63+
64+
# - name: Install stable Rust
65+
# uses: actions-rs/toolchain@v1
66+
# with:
67+
# toolchain: stable
68+
# override: true
69+
70+
# - uses: davidB/rust-cargo-make@v1
71+
# with:
72+
# version: '0.32.11'
73+
74+
# - uses: conda-incubator/setup-miniconda@v2
75+
# with:
76+
# activate-environment: console_pp
77+
# environment-file: conda.yml
78+
79+
# - name: Poetry Install
80+
# run: |
81+
# conda run -n console_pp poetry install
82+
83+
# - name: Run Benchmarks
84+
# shell: bash
85+
# run: |
86+
# cargo make benches
87+
88+
# checks:
89+
90+
# name: Code Quality Checks
91+
92+
# runs-on: ubuntu-latest
93+
94+
# steps:
95+
96+
# - name: Checkout source
97+
# uses: actions/checkout@v2
98+
# with:
99+
# submodules: recursive
100+
# ssh-key: ${{ secrets.SSH_KEY }}
101+
102+
# - name: Install stable Rust
103+
# uses: actions-rs/toolchain@v1
104+
# with:
105+
# toolchain: stable
106+
# override: true
107+
# components: rustfmt, clippy
108+
109+
# - uses: davidB/rust-cargo-make@v1
110+
# with:
111+
# version: '0.32.11'
112+
113+
# - uses: conda-incubator/setup-miniconda@v2
114+
# with:
115+
# activate-environment: console_pp
116+
# environment-file: conda.yml
117+
118+
# - name: Install Dependencies.
119+
# run: |
120+
# sudo apt-get install -y capnproto
121+
122+
# - name: Poetry Install
123+
# run: |
124+
# conda run -n console_pp poetry install
125+
126+
# - name: Run Format Check
127+
# run: |
128+
# cargo make format-check
129+
130+
# - name: Run Type Check
131+
# run: |
132+
# cargo make types
133+
134+
# - name: Run Lint Check
135+
# run: |
136+
# cargo make lint
137+
138+
# - name: Run Tests
139+
# run: |
140+
# cargo make tests
14141

15-
name: Backend Benchmarks
142+
build:
143+
144+
name: Build Binaries
145+
146+
# needs:
147+
# - checks
148+
# - backend_bench
16149

17150
strategy:
18151
matrix:
19152
os:
20-
- ubuntu-20.04
21-
- macos-10.15
153+
# - ubuntu-20.04
154+
# - macos-10.15
22155
- windows-2019
23156

24157
runs-on: ${{ matrix.os }}
@@ -45,125 +178,6 @@ jobs:
45178
& "C:\\Program Files\\Git\\bin\\sh.exe" -c "echo '${{ secrets.SSH_KEY }}' >> ~/.ssh/id_rsa"
46179
if: matrix.os == 'windows-2019'
47180

48-
- name: Install ${{ runner.os }} Dependencies.
49-
shell: bash
50-
run: |
51-
if [ "$RUNNER_OS" == "Linux" ]; then
52-
sudo apt-get install -y capnproto git-lfs
53-
elif [ "$RUNNER_OS" == "macOS" ]; then
54-
brew install capnp git-lfs
55-
elif [ "$RUNNER_OS" == "Windows" ]; then
56-
choco install -y capnproto git-lfs
57-
fi
58-
59-
- name: Pull Git LFS objects
60-
run: git lfs pull
61-
env:
62-
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
63-
64-
- name: Install stable Rust
65-
uses: actions-rs/toolchain@v1
66-
with:
67-
toolchain: stable
68-
override: true
69-
70-
- uses: davidB/rust-cargo-make@v1
71-
with:
72-
version: '0.32.11'
73-
74-
- uses: conda-incubator/setup-miniconda@v2
75-
with:
76-
activate-environment: console_pp
77-
environment-file: conda.yml
78-
79-
- name: Poetry Install
80-
run: |
81-
conda run -n console_pp poetry install
82-
83-
- name: Run Benchmarks
84-
shell: bash
85-
run: |
86-
cargo make benches
87-
88-
checks:
89-
90-
name: Code Quality Checks
91-
92-
runs-on: ubuntu-latest
93-
94-
steps:
95-
96-
- name: Checkout source
97-
uses: actions/checkout@v2
98-
with:
99-
submodules: recursive
100-
ssh-key: ${{ secrets.SSH_KEY }}
101-
102-
- name: Install stable Rust
103-
uses: actions-rs/toolchain@v1
104-
with:
105-
toolchain: stable
106-
override: true
107-
components: rustfmt, clippy
108-
109-
- uses: davidB/rust-cargo-make@v1
110-
with:
111-
version: '0.32.11'
112-
113-
- uses: conda-incubator/setup-miniconda@v2
114-
with:
115-
activate-environment: console_pp
116-
environment-file: conda.yml
117-
118-
- name: Install Dependencies.
119-
run: |
120-
sudo apt-get install -y capnproto
121-
122-
- name: Poetry Install
123-
run: |
124-
conda run -n console_pp poetry install
125-
126-
- name: Run Format Check
127-
run: |
128-
cargo make format-check
129-
130-
- name: Run Type Check
131-
run: |
132-
cargo make types
133-
134-
- name: Run Lint Check
135-
run: |
136-
cargo make lint
137-
138-
- name: Run Tests
139-
run: |
140-
cargo make tests
141-
142-
build:
143-
144-
name: Build Binaries
145-
146-
needs:
147-
- checks
148-
- backend_bench
149-
150-
strategy:
151-
matrix:
152-
os:
153-
- ubuntu-20.04
154-
- macos-10.15
155-
- windows-2019
156-
157-
runs-on: ${{ matrix.os }}
158-
159-
steps:
160-
161-
- name: Checkout source
162-
uses: actions/checkout@v2
163-
with:
164-
submodules: recursive
165-
ssh-key: ${{ secrets.SSH_KEY }}
166-
167181
- name: Install ${{ runner.os }} Dependencies.
168182
shell: bash
169183
run: |
@@ -202,7 +216,10 @@ jobs:
202216
shell: bash
203217
run: |
204218
cargo make prod-installer
205-
219+
- name: Pull Git LFS objects
220+
run: git lfs pull
221+
env:
222+
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
206223
- name: Zip ${{ runner.os }} Binaries.
207224
env:
208225
OS_NAME: ${{ runner.os }}

0 commit comments

Comments
 (0)