ci: upgrade actions/{checkout,upload-artifact} to v6

This commit is contained in:
ayn2op 2026-02-17 16:39:55 -05:00
parent eee2862a1e
commit f1650a0df7

View file

@ -7,15 +7,23 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
# https://docs.github.com/en/actions/using-github-hosted-runners # https://docs.github.com/en/actions/using-github-hosted-runners
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-latest, macos-15-intel] os:
[
ubuntu-latest,
ubuntu-24.04-arm,
windows-latest,
windows-11-arm,
macos-latest,
macos-15-intel,
]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v6
- uses: actions/setup-go@v6 - uses: actions/setup-go@v6
with: with:
go-version: stable go-version: stable
- name: Install libx11-dev for clipboard support - name: Install libx11-dev for clipboard support
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: sudo apt install libx11-dev run: sudo apt install libx11-dev
@ -26,7 +34,7 @@ jobs:
- name: Build - name: Build
run: go build -trimpath -ldflags=-s . run: go build -trimpath -ldflags=-s .
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v6
if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
with: with:
name: discordo_${{ runner.os }}_${{ runner.arch }} name: discordo_${{ runner.os }}_${{ runner.arch }}