Skip to content

Commit

Permalink
ci: bump action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinfall committed May 13, 2024
1 parent ba46d38 commit a9e426f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Continuous Deployment
on:
push:
tags:
- '*'
- "*"

jobs:
publish-github:
name: Publish on Github
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: |
$Env:PATH = "${Env:USERPROFILE}\go\bin;${Env:PATH}"
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Upload the release
uses: softprops/action-gh-release@v1
with:
body_path: body.txt
body_path: body.txt
files: |
out_amd64/wsldl.exe
out_amd64/icons.zip
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@ name: Continuous Integration
on:
push:
paths:
- 'src/**'
- 'res/**'
- 'build.bat'
- '.github/workflows/**'
- "src/**"
- "res/**"
- "build.bat"
- ".github/workflows/**"
pull_request:
paths:
- 'src/**'
- 'res/**'
- 'build.bat'
- '.github/workflows/**'
- "src/**"
- "res/**"
- "build.bat"
- ".github/workflows/**"

jobs:
compile-wsldl-windows:
name: Compile wsldl
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: |
$short_sha = $env:GITHUB_SHA.SubString(0, 7)
$Env:GO_BUILD_OPTS = "-ldflags `"-X github.com/yuk7/wsldl/version.version=CI-${short_sha}`""
.\build.bat all
Compress-Archive -Path .\out\icons\* -DestinationPath .\out\icons.zip
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: Build results-Windows
path: |
Expand All @@ -37,7 +37,7 @@ jobs:
name: Compile wsldl ARM64
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: |
$Env:PATH = "${Env:USERPROFILE}\go\bin;${Env:PATH}"
Expand All @@ -46,7 +46,7 @@ jobs:
$Env:GOARCH="arm64"
.\build.bat all
Compress-Archive -Path .\out\icons\* -DestinationPath .\out\icons.zip
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: Build results-Windows-ARM64
path: |
Expand All @@ -57,15 +57,15 @@ jobs:
name: Cross-compile wsldl from Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: |
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest
export PATH=$PATH:~/go/bin
cd src
goversioninfo
env GOOS=windows GOARCH=amd64 go build -ldflags "-X github.com/yuk7/wsldl/version.version=CI-Cross-${GITHUB_SHA:0:7}"
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: Build results-Linux
path: |
Expand Down

0 comments on commit a9e426f

Please sign in to comment.