Skip to content

Commit

Permalink
Re-enable artifact release on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov committed Dec 29, 2021
1 parent 69f7990 commit 2007278
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
46 changes: 30 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: solana-bpf-tools-${{ matrix.tar }}.tar.bz2
path: ${{ matrix.out_dir }}/solana-bpf-tools-${{ matrix.tar }}.tar.bz2
path: solana-bpf-tools-${{ matrix.tar }}.tar.bz2
- name: Upload ${{ matrix.tar }} SBF tarball
uses: actions/upload-artifact@v2
with:
name: solana-sbf-tools-${{ matrix.tar }}.tar.bz2
path: ${{ matrix.out_dir }}/solana-sbf-tools-${{ matrix.tar }}.tar.bz2
path: solana-sbf-tools-${{ matrix.tar }}.tar.bz2

release:
name: Upload Release Assets
Expand All @@ -100,10 +100,14 @@ jobs:
uses: actions/download-artifact@v2
with:
name: solana-sbf-tools-osx.tar.bz2
# - name: Download Windows tarball
# uses: actions/download-artifact@v2
# with:
# name: solana-bpf-tools-windows.tar.bz2
- name: Download Windows BPF tarball
uses: actions/download-artifact@v2
with:
name: solana-bpf-tools-windows.tar.bz2
- name: Download Windows SBF tarball
uses: actions/download-artifact@v2
with:
name: solana-sbf-tools-windows.tar.bz2
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -154,13 +158,23 @@ jobs:
asset_path: solana-sbf-tools-osx.tar.bz2
asset_name: solana-sbf-tools-osx.tar.bz2
asset_content_type: application/zip
# - name: Release Windows tarball
# id: upload-release-windows
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: solana-bpf-tools-windows.tar.bz2
# asset_name: solana-bpf-tools-windows.tar.bz2
# asset_content_type: application/zip
- name: Release Windows BPF tarball
id: upload-release-windows-bpf
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: solana-bpf-tools-windows.tar.bz2
asset_name: solana-bpf-tools-windows.tar.bz2
asset_content_type: application/zip
- name: Release Windows SBF tarball
id: upload-release-windows-sbf
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: solana-sbf-tools-windows.tar.bz2
asset_name: solana-sbf-tools-windows.tar.bz2
asset_content_type: application/zip
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ tar -C deploy -jcf ${ARTIFACT/bpf/sbf} .

popd

mv "${OUT_DIR}/${ARTIFACT}" "${OUT_DIR}/${ARTIFACT/bpf/sbf}" .

# Build linux binaries on macOS in docker
if [[ "$(uname)" == "Darwin" ]] && [[ $# == 1 ]] && [[ "$1" == "--docker" ]] ; then
docker system prune -a -f
Expand Down

0 comments on commit 2007278

Please sign in to comment.