-
Notifications
You must be signed in to change notification settings - Fork 13
60 lines (48 loc) · 1.59 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Run CI
on:
push:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md'
jobs:
ci-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # If you only need the current version keep this.
- name: Setup rust tooling
run: |
rustup override set 1.74
rustup component add rustfmt clippy
- uses: ./.github/actions/ci
- name: 'Run contract tests with hyper_rustls'
uses: ./.github/actions/contract-tests
with:
tls_feature: 'rustls'
token: ${{ secrets.GITHUB_TOKEN }}
- name: 'Run contract tests with hyper_tls'
uses: ./.github/actions/contract-tests
with:
tls_feature: 'tls'
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/build-docs
musl-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # If you only need the current version keep this.
- name: Setup rust tooling
run: |
rustup override set 1.74
rustup component add rustfmt clippy
rustup target add x86_64-unknown-linux-musl
- name: Install musl tools
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build
run: TARGET_CC=musl-gcc RUSTFLAGS="-C linker=musl-gcc" cargo build --release --target=x86_64-unknown-linux-musl -p launchdarkly-server-sdk