Skip to content

Commit

Permalink
adding workaround to fetch libsodium differently
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Mar 21, 2024
1 parent a2683a3 commit 2825070
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/holochain-binaries-manually.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: 'release-holochain-binaries-manually'
on:
push:
tags:
- 'holochain-binaries-*'
branches:
- dev-windows-release

jobs:
publish-holochain-binaries:
strategy:
fail-fast: false
matrix:
platform: [windows-2019, macos-11, ubuntu-22.04]
platform: [windows-2019]
permissions:
contents: write
runs-on: ${{ matrix.platform }}
Expand All @@ -18,12 +18,12 @@ jobs:
# Checks out a copy of your repository on the ubuntu-latest machine
- uses: actions/checkout@v4

- id: create-release
uses: ncipollo/release-action@v1
with:
body: 'Holochain binaries for Linux/Windows/macOS.'
prerelease: true
skipIfReleaseExists: true
# - id: create-release
# uses: ncipollo/release-action@v1
# with:
# body: 'Holochain binaries for Linux/Windows/macOS.'
# prerelease: true
# skipIfReleaseExists: true

- name: install Rust stable
uses: actions-rs/toolchain@v1
Expand All @@ -36,13 +36,26 @@ jobs:
with:
go-version: 'stable'


- name: Install vcpkg Packages
if: matrix.os == 'windows-2019'
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: libsodium
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: true


- name: setup binaries (Windows only)
if: matrix.platform == 'windows-2019'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$env:HOLOCHAIN_VERSION = $(node -p -e "require('./config.json').holochainVersion")
$env:SODIUM_LIB_DIR="$(pwd)\vcpkg\packages\libsodium_x64-windows-release\lib"
cargo install holochain --git https://github.com/holochain/holochain --rev c3eec1b95449c8e9538c7b761a01048b4424c5e4
$HcPath = Get-Command holochain | Select-Object -ExpandProperty Definition
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/lair-binaries-manually.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ jobs:
override: true
toolchain: stable

- name: Install vcpkg Packages
if: matrix.os == 'windows-2019'
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: libsodium
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: true

- name: setup binaries (Windows only)
if: matrix.platform == 'windows-2019'
env:
Expand Down

0 comments on commit 2825070

Please sign in to comment.