[release-19.0] Upgrade the Golang version to go1.22.5
(#16322)
#1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This creates a {tar.gz,deb,rpm} file and uploads it to a release. | ||
# To trigger this, create a new release.. but make sure that you publish | ||
# it immediately and do not save it as a DRAFT. | ||
name: Release | ||
on: | ||
release: | ||
types: [created] | ||
permissions: read-all | ||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
<<<<<<< HEAD | ||
go-version: 1.22.5 | ||
======= | ||
go-version: 1.22.5 | ||
>>>>>>> c60a5ea6b3 ([release-19.0] Upgrade the Golang version to `go1.22.5` (#16322)) | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18.16.0' | ||
- name: Tune the OS | ||
run: | | ||
sudo sysctl -w net.ipv4.ip_local_port_range="22768 65535" | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Get dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y make ruby ruby-dev | ||
go mod download | ||
sudo gem install fpm | ||
- name: Make Packages | ||
run: | | ||
./tools/make-release-packages.sh | ||
- name: Upload Files | ||
uses: csexton/release-asset-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
pattern: "releases/*.{tar.gz,rpm,deb}" |