Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to latest rust/gns #3

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 22 additions & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build
run: |
sudo apt-get install autoconf pkg-config libprotobuf-c-dev protobuf-compiler libssl-dev
RUST_LOG=debug cargo build -p example -vvv

build-windows:
name: Windows
runs-on: windows-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
submodules: 'true'
nix_path: nixpkgs=channel:nixos-unstable
- name: Build
run: |
choco install openssl
choco install protoc
git clone --depth 1 --branch v3.20.1 https://github.com/protocolbuffers/protobuf
$Env:CPLUS_INCLUDE_PATH = "C:\Program Files\OpenSSL-Win64\include\;$((Get-Location).Path)\protobuf\src"
cargo build -p gns -vvv
nix develop -L --command bash -c "RUST_LOG=debug cargo build -p example -vvv"

# build-windows:
# name: Windows
# runs-on: windows-latest
# steps:
# - name: Setup | Checkout
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# - name: Build
# run: |
# choco install openssl
# choco install protoc
# TODO: couldn't fine abseil as installable lib with choco?
# choco install absl
# git clone --depth 1 --branch 24.x https://github.com/protocolbuffers/protobuf
# $Env:CPLUS_INCLUDE_PATH = "C:\Program Files\OpenSSL-Win64\include\;$((Get-Location).Path)\protobuf\src"
# cargo build -p gns -vvv
Loading