Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Jan 11, 2024
1 parent 8f79998 commit 3b80ab6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ inputs:
target:
description: Build for the target triple
required: true
feature:
description: Build feature
required: true
runs:
using: composite
steps:
- name: Build dev
if: ${{ inputs.release == 'false' }}
shell: bash
run: cargo build --target ${{ inputs.target }}
run: cargo build --target ${{ inputs.target }} --features ${{ inputs.feature }}
- name: Build release
if: ${{ inputs.release == 'true' }}
shell: bash
run: cargo build --target ${{ inputs.target }} -r
run: cargo build --target ${{ inputs.target }} --features ${{ inputs.feature }} -r
10 changes: 5 additions & 5 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
matrix:
target:
- { os: ubuntu-22.04, triple: x86_64-unknown-linux-gnu , alias: amd64-gnu-ubuntu-22.04 }
- { os: ubuntu-22.04, triple: x86_64-unknown-linux-musl, alias: amd64-musl-ubuntu-22.04 }
#- { os: ubuntu-22.04, triple: x86_64-unknown-linux-musl, alias: amd64-musl-ubuntu-22.04 }
linux-headers:
- { pkg: linux-headers-5.15.0-91-generic, install-path: /usr/src/linux-headers-5.15.0-90-generic, alias: 5.15 }
- { pkg: linux-headers-5.19.0-50-generic, install-path: /usr/src/linux-headers-5.19.0-50-generic, alias: 5.19 }
- { pkg: linux-headers-6.2.0-39-generic , install-path: /usr/src/linux-headers-6.2.0-39-generic , alias: 6.2 }
#- { pkg: linux-headers-5.15.0-91-generic, install-path: /usr/src/linux-headers-5.15.0-90-generic, alias: 5.15 }
#- { pkg: linux-headers-5.19.0-50-generic, install-path: /usr/src/linux-headers-5.19.0-50-generic, alias: 5.19 }
#- { pkg: linux-headers-6.2.0-39-generic , install-path: /usr/src/linux-headers-6.2.0-39-generic , alias: 6.2 }
- { pkg: linux-headers-6.5.0-14-generic , install-path: /usr/src/linux-headers-6.5.0-14-generic , alias: 6.5 }

steps:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:

- name: Setup LINUX_HEADERS_PATH
shell: bash
run: export LINUX_HEADERS_PATH="${{ matrix.linux-headers.install-path }}"
run: export LINUX_HEADERS_PATH=${{ matrix.linux-headers.install-path }}

- name: Add target
uses: ./.github/actions/add-target
Expand Down

0 comments on commit 3b80ab6

Please sign in to comment.