Skip to content

Commit

Permalink
fix: install golang
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Sep 15, 2023
1 parent a02be57 commit 83cf5d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ jobs:
dockerRunArgs: -v $GITHUB_WORKSPACE:/src --cgroupns=host

# Set an output parameter `uname` for use in subsequent steps
install: |
run: |
uname -a
echo ::set-output name=uname::$(uname -a)
# setup golang
apt-get update
apt-get install -yy wget curl tar software-properties-common git pkgconf build-essential
cd /tmp
wget -N https://go.dev/dl/go1.20.5.linux-${{ matrix.arch }}.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.20.5.linux-${{ matrix.arch }}.tar.gz
wget -N https://go.dev/dl/go1.20.8.linux-${{ matrix.arch }}.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.20.8.linux-${{ matrix.arch }}.tar.gz
export PATH=$PATH:/usr/local/go/bin
# install dependencies
export GOPATH=/src
Expand All @@ -168,12 +168,12 @@ jobs:
GO111MODULE=off go get github.com/opencontainers/umoci/cmd/umoci
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
apt-get install -yy autoconf automake make autogen autoconf libtool binutils git squashfs-tools libcryptsetup-dev libdevmapper-dev cryptsetup-bin squashfuse
run: |
export PATH=$PATH:/usr/local/go/bin
cd /src
make go-download
make show-info
make stacker-dynamic VERSION_FULL=${{ matrix.build-id }}
make stacker VERSION_FULL=${{ matrix.build-id }} STACKER_BUILD_BASE_IMAGE="$BASE_IMAGE"
make stacker-dynamic VERSION_FULL=${{ inputs.build-id }}
make stacker VERSION_FULL=${{ inputs.build-id }} STACKER_BUILD_BASE_IMAGE=${{ env.BASE_IMAGE }}
- name: Get the output
# Echo the `uname` output parameter from the `runcmd` step
run: |
Expand Down

0 comments on commit 83cf5d6

Please sign in to comment.