Skip to content

Commit

Permalink
ci: simplify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Mar 25, 2024
1 parent 537840a commit 9861e81
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4

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

- name: Install dependencies
id: vcpkg
uses: johnwason/vcpkg-action@v5
Expand All @@ -54,14 +48,14 @@ jobs:
triplet: ${{ matrix.vcpkg_openssl_triplet }}
token: ${{ github.token }}

- name: Set OPENSSL environment variables
shell: bash
run: |
if [ "${{ matrix.build }}" = "windows" ]; then
echo "OPENSSL_DIR=${{ github.workspace }}\\vcpkg\\installed\\${{ matrix.vcpkg_openssl_triplet }}" >> $GITHUB_ENV
else
echo "OPENSSL_DIR=${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkg_openssl_triplet }}" >> $GITHUB_ENV
fi
#- name: Set OPENSSL environment variables
# shell: bash
# run: |
# if [ "${{ matrix.build }}" = "windows" ]; then
# echo "OPENSSL_DIR=${{ github.workspace }}\\vcpkg\\installed\\${{ matrix.vcpkg_openssl_triplet }}" >> $GITHUB_ENV
# else
# echo "OPENSSL_DIR=${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkg_openssl_triplet }}" >> $GITHUB_ENV
# fi

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
Expand All @@ -72,13 +66,7 @@ jobs:
run: cargo build --bin yr --profile release-lto --target ${{ matrix.target }} ${{ matrix.args }}
env:
RUSTFLAGS: "-C target-feature=+crt-static"

- name: ls
shell: bash
run: |
ls
ls target
ls target/release-lto
OPENSSL_DIR: "${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkg_openssl_triplet }}"

- name: Build archive
shell: bash
Expand Down

0 comments on commit 9861e81

Please sign in to comment.