Closed davincios closed 2 months ago
I have also added the open-ssl dependency in cargo.toml but cannot get it to work:
[dependencies.openssl] version = "0.10.59" features = ["vendored"]
Can't locate Locale/Maketext/Simple.pm in @INC (you may need to install the Locale::Maketext::Simple module)
It seems to be the same issue as https://github.com/sfackler/rust-openssl/issues/2149.
@taiki-e thank you so much for your quick response. I just compiled it and it works!!! I am so happy.
For reference this is what worked for me:
name: Release
on:
push:
tags:
- "v*"
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
upload-assets:
needs: create-release
strategy:
matrix:
include:
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: universal-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Set Perl environment variables
if: runner.os == 'Windows'
run: |
echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
- uses: actions/checkout@v4
- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
if: startsWith(matrix.os, 'ubuntu')
- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: tracer
# (optional) Target triple, default is host triple.
target: ${{ matrix.target }}
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
The taiki-e upload action works great, I just have a small issue with Windows where I am getting a CI/CD build error that returns: openssl-sys v0.9.102
I tried out adding the openssl-sys crate and a lot of other things mentioned in the pull requests, but would greatly appreciate any help!
I have a public repository here: https://github.com/davincios/tracer-cli
With the .github/workflow file here: https://github.com/davincios/tracer-cli/blob/master/.github/workflows/cross-platform-release.yml
workflow file
CI/CD Logs