Skip to content

Commit

Permalink
Merge branch 'main' into impl-sign-verify
Browse files Browse the repository at this point in the history
  • Loading branch information
StringNick authored Sep 4, 2024
2 parents e4b222f + f0e45ee commit 89255d1
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Zig Test

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
ZIG_VERSION: 0.14.0-dev.909+f9f894200

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Cache Zig
uses: actions/cache@v3
with:
path: ~/zig
key: ${{ runner.os }}-zig-${{ env.ZIG_VERSION }}

- name: Install Zig
if: steps.cache.outputs.cache-hit != 'true'
run: |
wget https://ziglang.org/builds/zig-linux-x86_64-${{ env.ZIG_VERSION }}.tar.xz
tar -xf zig-linux-x86_64-${{ env.ZIG_VERSION }}.tar.xz
mv zig-linux-x86_64-${{ env.ZIG_VERSION }} ~/zig
- name: Add Zig to PATH
run: echo "${HOME}/zig" >> $GITHUB_PATH

- name: Cache Zig build artifacts
uses: actions/cache@v3
with:
path: |
zig-cache
~/.cache/zig
key: ${{ runner.os }}-zig-build-${{ hashFiles('**/*.zig') }}
restore-keys: |
${{ runner.os }}-zig-build-
- name: Unit testing
run: zig build test --summary all
2 changes: 1 addition & 1 deletion src/secp256k1.zig
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub const Secp256k1 = struct {
ctx: ?*secp256k1.struct_secp256k1_context_struct,

pub fn deinit(self: @This()) void {
secp256k1.secp256k1_context_preallocated_destroy(self.ctx);
secp256k1.secp256k1_context_destroy(self.ctx);
}

/// Creates a schnorr signature using the given auxiliary random data.
Expand Down

0 comments on commit 89255d1

Please sign in to comment.