Skip to content

Commit

Permalink
ci: fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Apr 29, 2024
1 parent 4a691db commit 8d0eb7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,6 @@ jobs:
with:
toolchain: stable

# Install OpenSSL on Windows
- name: Install OpenSSL
if: runner.os == 'Windows'
id: vcpkg
uses: johnwason/vcpkg-action@v5
with:
pkgs: openssl
triplet: x64-windows-static
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-static" >> $GITHUB_ENV

# Install OpenSSL on Linux
- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
- name: Install cargo-c
run: cargo install cargo-c

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
tags:
- 'v*'
jobs:
# Build CLI tool.
build-cli:
env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -156,7 +155,7 @@ jobs:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

publish:
publish-cli:
needs: [ build-cli ]
runs-on: ubuntu-latest

Expand All @@ -176,16 +175,20 @@ jobs:
draft: true
files: yr-*/yara-x-*

pypi-publish:
publish-py:
needs: [ build-py ]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/yara-x
permissions:
id-token: write

steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: cibw-wheels-*

#- name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

Expand Down

0 comments on commit 8d0eb7f

Please sign in to comment.