Skip to content

Commit

Permalink
Use windows-2019
Browse files Browse the repository at this point in the history
  • Loading branch information
jareddlc committed Sep 13, 2024
1 parent 67e86f8 commit 2a8d919
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 5 deletions.
86 changes: 86 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Release

on: push

jobs:
# build_linux:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Build
# run: cargo build --release

# - name: Upload Linux Artifact
# uses: actions/upload-artifact@v4
# with:
# name: linux-binary
# path: target/release/libgut_cert_check.so

build_windows:
runs-on: windows-2019

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deps
run: choco install --yes openssl

- name: Test 1
run: |
cd "C:\Program Files\OpenSSL-Win64\lib"
dir
- name: Build
run: |
$env:OPENSSL_LIB_DIR="C:\Program Files\OpenSSL-Win64\lib"
$env:OPENSSL_INCLUDE_DIR="C:\Program Files\OpenSSL-Win64\include"
$env:OPENSSL_DIR="C:\Program Files\OpenSSL-Win64"
cargo build --release
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
with:
name: windows-binary
path: target\release\gut_cert_check.dll

# build_macos_x86:
# runs-on: macos-latest

# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Build
# run: cargo build --release

# - name: Rename binary
# run: mv target/release/libgut_cert_check.dylib target/release/libgut_cert_check-x86.dylib

# - name: Upload MacOS Artifact
# uses: actions/upload-artifact@v4
# with:
# name: macos-x86-binary
# path: target/release/libgut_cert_check-x86.dylib

# build_macos_aarch64:
# runs-on: macos-14

# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Build
# run: cargo build --release

# - name: Rename binary
# run: mv target/release/libgut_cert_check.dylib target/release/libgut_cert_check-aarch64.dylib

# - name: Upload MacOS Artifact
# uses: actions/upload-artifact@v4
# with:
# name: macos-aarch64-binary
# path: target/release/libgut_cert_check-aarch64.dylib
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
path: target/release/libgut_cert_check.so

build_windows:
runs-on: windows-latest
runs-on: windows-2019

steps:
- name: Checkout
Expand All @@ -36,14 +36,14 @@ jobs:

- name: Test 1
run: |
cd "C:\Program Files\OpenSSL\lib"
cd "C:\Program Files\OpenSSL-Win64\lib"
dir
- name: Build
run: |
$env:OPENSSL_LIB_DIR="C:\Program Files\OpenSSL\lib"
$env:OPENSSL_INCLUDE_DIR="C:\Program Files\OpenSSL\include"
$env:OPENSSL_DIR="C:\Program Files\OpenSSL"
$env:OPENSSL_LIB_DIR="C:\Program Files\OpenSSL-Win64\lib"
$env:OPENSSL_INCLUDE_DIR="C:\Program Files\OpenSSL-Win64\include"
$env:OPENSSL_DIR="C:\Program Files\OpenSSL-Win64"
cargo build --release
- name: Upload Windows Artifact
Expand Down

0 comments on commit 2a8d919

Please sign in to comment.