Skip to content

Commit

Permalink
update actions deps; add win7 build
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlehane committed Jun 21, 2024
1 parent 1b95102 commit 34a485e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install latest version of go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.x
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: richardlehane/provisioner
- name: Install provisioner
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
VERSION=$(curl https://api.github.com/repos/richardlehane/siegfried/releases/latest | grep -Po '\"tag_name\": \"v\K[^\"]*')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.KEEPS_ACCESS_TOKEN }}
repository: 'keeps/siegfried-docker'
Expand Down
48 changes: 37 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
version: ${{ env.VERS }}
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install latest version of go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.x
- name: Make sf and roy binaries
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Zip self-contained executable
run: zip -j siegfried_${{ env.VERS }}_linux64_static.zip ${{ env.BIN_PATH }}/sf
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release-artifacts
path: |
Expand All @@ -58,9 +58,9 @@ jobs:
VERSION: ${{needs.buildDeb.outputs.version}}
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install latest version of go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.x
- name: Make sf and roy binaries
Expand All @@ -87,9 +87,9 @@ jobs:
VERSION: ${{needs.buildDeb.outputs.version}}
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install latest version of go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.x
- name: Make sf and roy binaries
Expand All @@ -109,25 +109,51 @@ jobs:
shell: pwsh
run: 7z a siegfried_${{ env.VERSION }}_win64_static.zip ((go env GOPATH) + "\bin\sf.exe")
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release-artifacts
path: |
siegfried_${{ env.VERSION }}_win64.zip
siegfried_${{ env.VERSION }}_win64_static.zip
data_${{ env.VERSION }}.zip
buildWin7:
runs-on: windows-latest
needs: buildDeb
env:
VERSION: ${{needs.buildDeb.outputs.version}}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install latest version of go
uses: actions/setup-go@v5
with:
go-version: 1.20
- name: Make sf and roy binaries
run: |
go install github.com/richardlehane/siegfried/cmd/sf
go install github.com/richardlehane/siegfried/cmd/roy
- name: Zip binaries
shell: pwsh
run: |
7z a siegfried_${{ env.VERSION }}_win7.zip ((go env GOPATH) + "\bin\*.exe")
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts
path: |
siegfried_${{ env.VERSION }}_win7.zip
createRelease:
runs-on: ubuntu-latest
needs: [buildMac, buildWin]
needs: [buildMac, buildWin, buildWin7]
steps:
- name: Set version
run: echo "VERSION=$(echo "${{ github.ref }}" | cut -c12-)" >> $GITHUB_ENV
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: release-artifacts
path: release-artifacts
- name: Create release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Version ${{ env.VERSION }}
prerelease: ${{ contains(github.ref, 'rc') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
go: [ '1.x', '1.20', '1.19', '1.18']
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install latest version of go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run tests
Expand Down

0 comments on commit 34a485e

Please sign in to comment.