Skip to content

Commit 632f0bf

Browse files
committed
fix: generate certs before running ci
1 parent 5b666ee commit 632f0bf

File tree

1 file changed

+34
-29
lines changed

1 file changed

+34
-29
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
11
name: Build
22
on:
3-
push:
4-
branches: ["main"]
5-
pull_request:
6-
branches: ["main"]
3+
push:
4+
branches: ["main"]
5+
pull_request:
6+
branches: ["main"]
77
env:
8-
CARGO_TERM_COLOR: always
8+
CARGO_TERM_COLOR: always
99
jobs:
10-
build:
11-
strategy:
12-
matrix:
13-
os: [ubuntu-latest, windows-latest]
14-
include:
15-
- os: ubuntu-latest
16-
file: pocket-relay-client
17-
file_name: Ubuntu Build
18-
- os: windows-latest
19-
file: pocket-relay-client.exe
20-
file_name: Windows Build
21-
runs-on: ${{ matrix.os }}
10+
build:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
include:
15+
- os: ubuntu-latest
16+
file: pocket-relay-client
17+
file_name: Ubuntu Build
18+
- os: windows-latest
19+
file: pocket-relay-client.exe
20+
file_name: Windows Build
21+
runs-on: ${{ matrix.os }}
2222

23-
steps:
24-
- uses: actions/checkout@v3
25-
# OpenSSL dependency on windows
26-
- name: Setup vcpkg
27-
run: vcpkg install openssl:x64-windows-static-md && vcpkg integrate install
28-
if: matrix.os == 'windows-latest'
29-
# Building
30-
- name: Build Client
31-
run: cargo build --verbose
23+
steps:
24+
- uses: actions/checkout@v3
25+
# OpenSSL dependency on windows
26+
- name: Setup vcpkg
27+
run: vcpkg install openssl:x64-windows-static-md && vcpkg integrate install
28+
if: matrix.os == 'windows-latest'
3229

33-
# Testing
34-
- name: Run tests
35-
run: cargo test --verbose
30+
# Generate Certs
31+
- name: Generate certs
32+
run: cd certs && sh generate.sh
33+
34+
# Building
35+
- name: Build Client
36+
run: cargo build --verbose
37+
38+
# Testing
39+
- name: Run tests
40+
run: cargo test --verbose

0 commit comments

Comments
 (0)