Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: bump action versions #157

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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