Skip to content

Commit

Permalink
github: upgrade actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDunne committed May 22, 2024
1 parent 9b06ea4 commit f248d17
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
name: Go Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '^1.22.1'

- run: go test ./...

Expand All @@ -43,24 +43,24 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '^1.22.1'

- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4

- run: echo "basename=o2-${{env.GITHUB_REF_SLUG}}-${{matrix.goos}}-${{matrix.goarch}}${{matrix.alt}}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Build Web
run: |
Expand All @@ -75,7 +75,7 @@ jobs:
go build -tags="${{ matrix.tags }}" -gcflags=all=-l -ldflags="-w -X 'main.version=${{env.GITHUB_REF_SLUG}}' -X 'main.commit=${{env.GITHUB_SHA_SHORT}}' -X 'main.date=$(date +'%Y-%m-%dT%H:%M:%S')' -X 'main.builtBy=$(go version | cut -f3 -d ' ')'" -o ./${{env.basename}}/o2.exe ./webui/o2
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{env.basename}}
path: ${{env.basename}}/
Expand All @@ -97,18 +97,18 @@ jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '^1.22.1'

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
rm -f ./${{env.basename}}/o2.amd64 ./${{env.basename}}/o2.arm64
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{env.basename}}
path: ${{env.basename}}/
Expand Down Expand Up @@ -196,19 +196,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '^1.22.1'

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
Expand All @@ -228,7 +228,7 @@ jobs:
./webui/o2
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{env.basename}}
path: ${{env.basename}}/
Expand Down

0 comments on commit f248d17

Please sign in to comment.