Skip to content

Commit 15f2e04

Browse files
committed
Revamp CI
1 parent 1d40394 commit 15f2e04

File tree

9 files changed

+18
-12
lines changed

9 files changed

+18
-12
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,14 @@ jobs:
99
name: Push gem to RubyGems.org
1010
runs-on: ubuntu-latest
1111

12-
permissions:
13-
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
14-
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
15-
1612
steps:
1713
- uses: actions/checkout@v5
18-
with:
19-
persist-credentials: false
2014

2115
- name: Set up Ruby
2216
uses: ruby/setup-ruby@v1
2317
with:
2418
ruby-version: '3.4'
19+
bundler-cache: true
2520

2621
- name: Install dependencies
2722
run: bundle install

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
uses: ruby/setup-ruby@v1
2424
with:
2525
ruby-version: ${{ matrix.ruby-version }}
26+
bundler-cache: true
2627

2728
- name: Install build tools on macOS
2829
if: runner.os == 'macOS'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ build-iPhoneSimulator/
5454

5555
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
5656
# .rubocop-https?--*
57+
58+
release

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Changelog
32

43
## 0.6.1

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
source "https://rubygems.org"
2+
23
gemspec
4+
5+
gem "rake", group: :development
6+
gem "minitest", group: :test

Gemfile.lock

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
libsecp256k1 (0.6.0)
5-
ffi (>= 1.17.2)
4+
libsecp256k1 (0.6.1)
5+
ffi (~> 1.17)
66

77
GEM
88
remote: https://rubygems.org/
@@ -18,6 +18,8 @@ GEM
1818
ffi (1.17.2-x86_64-darwin)
1919
ffi (1.17.2-x86_64-linux-gnu)
2020
ffi (1.17.2-x86_64-linux-musl)
21+
minitest (5.26.0)
22+
rake (13.3.0)
2123

2224
PLATFORMS
2325
aarch64-linux-gnu
@@ -34,6 +36,8 @@ PLATFORMS
3436

3537
DEPENDENCIES
3638
libsecp256k1!
39+
minitest
40+
rake
3741

3842
BUNDLED WITH
3943
2.7.2

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ In order to use this gem, bitcoins's [secp256k1](https://github.com/bitcoin-core
88

99
### Install secp256k1
1010

11-
Use Homebrew:
11+
Use Homebrew on macOS or apt on Debian/Ubuntu:
1212

1313
```bash
1414
brew install secp256k1
15+
apt install libsecp256k1-dev gcc
1516
```
1617

1718
Or build locally:

libsecp256k1.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
77
s.summary = "A Ruby FFI binding for bitcoin's secp256k1 library"
88
s.description = "A Ruby FFI binding for bitcoin's secp256k1 library, superseding ruby-bitcoin-secp256k1."
99
s.license = "MIT"
10-
s.files = Dir["lib/**/**.rb"] + ["README.md", "LICENSE", "CHANGELOG.md"]
10+
s.files = Dir["lib/**/**.rb"] + ["libsecp256k1.gemspec", "README.md", "LICENSE", "CHANGELOG.md"]
1111
s.add_dependency("ffi", "~> 1.17")
1212
s.required_ruby_version = ">= 3.2"
1313
end

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
C_INCLUDE_PATH=secp256k1/include LD_LIBRARY_PATH=secp256k1/.libs ruby -Ilib:tests tests/test_secp256k1.rb
2+
C_INCLUDE_PATH=secp256k1/include LD_LIBRARY_PATH=secp256k1/.libs bundle exec rake test

0 commit comments

Comments
 (0)