Skip to content

Commit

Permalink
fix: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Mar 25, 2024
1 parent 2744c8a commit d92193b
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,28 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev libmagic-dev
- name: Install dependencies
id: vcpkg
if: runner.os == 'Windows'
uses: johnwason/vcpkg-action@v5
with:
pkgs: openssl
triplet: x64-windows-release
token: ${{ github.token }}

- name: Set OPENSSL_DIR environment variable
if: runner.os == 'Windows'
shell: bash
run: echo "OPENSSL_DIR=${{ github.workspace }}\\vcpkg\\installed\\x64-windows-release" >> $GITHUB_ENV

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}

#- name: Build
# #run: cargo build --profile release-lto ${{ matrix.args }}
#- name: Install dependencies
# id: vcpkg
# if: runner.os == 'Windows'
# uses: johnwason/vcpkg-action@v5
# with:
# pkgs: openssl
# triplet: x64-windows-release
# token: ${{ github.token }}
#- name: Set OPENSSL_DIR environment variable
# if: runner.os == 'Windows'
# shell: bash
# run: echo "OPENSSL_DIR=${{ github.workspace }}\\vcpkg\\installed\\x64-windows-release" >> $GITHUB_ENV
#- name: Install Rust toolchain
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: ${{ matrix.rust }}
#- name: Build
#run: cargo build --profile release-lto ${{ matrix.args }}
# run: cargo build --release ${{ matrix.args }}

- name: Build
Expand All @@ -80,7 +80,7 @@ jobs:
shell: bash
run: |
set -ex
pkgname=yr-${{ matrix.build }}
pkgname=yara-x-${{ matrix.build }}
if [ "${{ matrix.build }}" = "windows" ]; then
pushd target/release
7z a $pkgname.zip ${{ matrix.bin }}
Expand All @@ -93,7 +93,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: yr-${{ matrix.build }}
path: yr-*.*
path: yara-x-*

publish:
needs: [ build ]
Expand Down

0 comments on commit d92193b

Please sign in to comment.