Skip to content

Commit

Permalink
.github:workflows:kuiper2_0-build.ym: add build on self hosted runner
Browse files Browse the repository at this point in the history
Signed-off-by: Andreea Andrisan <[email protected]>
  • Loading branch information
AAndrisa committed May 13, 2024
1 parent 898da07 commit 2132042
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/kuiper2_0-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ on:

jobs:
Build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
arch: [32, 64]
build_type: [basic, full]
exclude:
- build_type: ${{ github.event_name == 'pull_request' && 'full' }}
include:
- arch: 32
build_type: basic
os: ubuntu-latest
- arch: 64
build_type: basic
os: ubuntu-latest
- arch: 32
build_type: full
os: [self-hosted, kuiper32_full]
- arch: 64
build_type: full
os: ubuntu-latest
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand All @@ -32,8 +43,10 @@ jobs:
echo BRANCH_NAME="$branch_name"_"$type"_"${{ matrix.arch }}" >> $GITHUB_ENV
- name: Build image
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
sudo apt-get update
sudo apt-get install -y qemu-user-static
fi
ci/modify_config.sh ./config "${{ vars[format('{0}', env.BRANCH_NAME )] }}"
sudo bash build-docker.sh
ls kuiper-volume/*.zip >/dev/null 2>&1 && exit 0 || exit 2
Expand Down

0 comments on commit 2132042

Please sign in to comment.