Skip to content

Commit

Permalink
build_sonic: split into additional steps and prune needs --force
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Nov 26, 2024
1 parent 0b6c12a commit ddd88be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/buildsonic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Clean up from prior runs
run: |
docker image prune --all --force
docker builder prune --all
docker builder prune --all --force
mydir=`pwd`
sudo rm -rf *
sudo rm -rf .git
Expand All @@ -38,13 +38,17 @@ jobs:
with:
submodules: "recursive"
fetch-depth: 0
- name: "Build Broadcom"
- name: "Make Init"
run: |
sudo mkdir -p /var/cache/sonic/artifacts
sudo chown $USER: /var/cache/sonic/artifacts
sudo chmod 777 /var/cache/sonic/artifacts
make init
- name: Configure Broadcom
run: |
make configure PLATFORM=broadcom
- name: Make target/sonic-broadcom.bin
run: |
make SONIC_BUILD_JOBS=4 target/sonic-broadcom.bin
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit ddd88be

Please sign in to comment.