Skip to content

Commit

Permalink
keep features separated
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Apr 19, 2024
1 parent a0d9a16 commit 959f151
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ jobs:
docker: linux/amd64
image:
- name: relay
features: "processing,crash-handler"
- name: relay-pop
features: "crash-handler"

name: Build Relay Binary
runs-on: ubuntu-latest
Expand All @@ -201,6 +199,11 @@ jobs:

env:
RELAY_BIN: "target/${{ matrix.platform.target }}/release/relay"
FEATURES: |
{
"relay": "processing,crash-handler",
"relay-pop": "crash-handler"
}
steps:
- name: Install dependencies
Expand All @@ -224,7 +227,8 @@ jobs:
- name: Compile
run: |
export PATH="/home/runner/.cargo/bin/:$PATH"
cross build --release --locked --features "${{ matrix.image.features }}" --target "${{ matrix.platform.target }}"
cross build --release --locked --features "${{ fromJson(env.FEATURES)[matrix.image.name] }}" --target "${{ matrix.platform.target }}"
- name: Split debug info
run: |
Expand Down

0 comments on commit 959f151

Please sign in to comment.