Skip to content

Commit

Permalink
Merge pull request #3777 from twz123/sync-arm-release-workflow
Browse files Browse the repository at this point in the history
Sync the arm release workflow with the arm64 release workflow
  • Loading branch information
twz123 authored Dec 1, 2023
2 parents 4fa31d1 + 10676ec commit 140da99
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ jobs:
- name: "Pre: Fixup directories"
run: find . -type d -not -perm /u+w -exec chmod u+w '{}' \;

- name: Clean Docker before build
run: |
docker system prune --all --volumes --force
- name: Check out code into the Go module directory
uses: actions/checkout@v3

Expand All @@ -360,23 +364,10 @@ jobs:
--tlog-upload=false \
/k0s/k0s --output-file /k0s/k0s.sig
# Need to install Go manually: https://github.com/actions/setup-go/issues/106
- name: Set up Go for smoke tests (armv6l)
run: |
echo "Setup go stable version $GO_VERSION"
rm -rf -- "$HOME/.local/go"
mkdir -p -- "$HOME/.local/go"
curl --silent -L "https://go.dev/dl/go${GO_VERSION%%.0}.linux-armv6l.tar.gz" | tar -C "$HOME/.local" -xz
echo "$HOME/.local/go/bin" >>"$GITHUB_PATH"
export PATH="$PATH:$HOME/.local/go/bin"
echo Added go to the path
echo "Successfully setup go version $GO_VERSION"
go version
echo ::group::go env
go env
echo ::endgroup::
- name: Set up Go for smoke tests
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- name: Run basic smoke test
run: make check-basic
Expand Down Expand Up @@ -424,6 +415,11 @@ jobs:
asset_name: k0s-airgap-bundle-${{ needs.release.outputs.tag_name }}-arm
asset_content_type: application/octet-stream

- name: Clean Docker after build
if: always()
run: |
docker system prune --all --volumes --force
# https://github.com/actions/checkout/issues/273#issuecomment-642908752
# Golang mod cache tends to set directories to read-only, which breaks any
# attempts to simply remove those directories. The `make clean-gocache`
Expand Down

0 comments on commit 140da99

Please sign in to comment.