build(deps): bump alpine from 3.18.4 to 3.19.0 #111
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
name: build-many | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
multi-os: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19.x | |
- name: Cache Go packages | |
id: cache-go-pkgs | |
uses: actions/cache@v3 | |
with: | |
# In order: | |
# * Module download cache | |
# * Build cache (Linux) | |
# * Build cache (Mac) | |
# * Build cache (Windows) | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
%LocalAppData%\go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Get dependencies | |
if: steps.cache-go-pkgs.outputs.cache-hit != 'true' | |
run: go get | |
- name: Pre-build steps | |
run: | | |
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then sudo apt-get install -y upx; fi | |
if [ "${{ matrix.os }}" = "macos-latest" ]; then brew install upx; fi | |
if [ "${{ matrix.os }}" = "windows-latest" ]; then choco install upx; fi | |
- name: Build | |
run: | | |
make release | |
mkdir artifact | |
mv list-github-stars* artifact | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact-${{ github.sha }}-${{ matrix.os }} | |
path: artifact | |
retention-days: 1 | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build image | |
run: docker build -t list-github-stars . |