Skip to content

Commit

Permalink
Attempt to upgrade Ubuntu runner for Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
nezza committed May 21, 2024
1 parent 3393afe commit 61946ab
Showing 1 changed file with 57 additions and 2 deletions.
59 changes: 57 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: push
name: OpenOCD Snapshot

jobs:
package:
package-windows:
runs-on: [ubuntu-20.04]
env:
DL_DIR: ../downloads
Expand Down Expand Up @@ -120,4 +120,59 @@ jobs:
draft: false
artifacts: ${{ env.ARTIFACT_PATH }}
prerelease: ${{ env.IS_PRE_RELEASE }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
package-linux:
runs-on: ubuntu-latest
outputs:
artifact-name: ${{ steps.package-linux.outputs.artifact-name }}
steps:
- uses: actions/checkout@v1
- name: Package OpenOCD for Linux
id: package-linux
uses: ./microsoft/static-linux-build
- name: Publish OpenOCD packaged for Linux
uses: actions/upload-artifact@v3
with:
name: ${{ steps.package-linux.outputs.artifact-name }}
path: ${{ steps.package-linux.outputs.artifact-name }}
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [package-windows, package-linux]
steps:
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Download OpenOCD packaged for Windows
uses: actions/download-artifact@v2
with:
name: ${{ needs.package-windows.outputs.artifact-name }}
- name: Download OpenOCD packaged for Linux
uses: actions/download-artifact@v2
with:
name: ${{ needs.package-linux.outputs.artifact-name }}
- name: Release OpenOCD packaged for Linux
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ needs.package-linux.outputs.artifact-name }}
asset_name: ${{ needs.package-linux.outputs.artifact-name }}
asset_content_type: application/gzip
- name: Release OpenOCD packaged for Windows
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ needs.package-windows.outputs.artifact-name }}
asset_name: ${{ needs.package-windows.outputs.artifact-name }}
asset_content_type: application/gzip

0 comments on commit 61946ab

Please sign in to comment.