-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a13e072
commit c8bbe36
Showing
4 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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: Build and Run | ||
run: zig build run -- info | ||
|
||
- name: Unit testing | ||
run: zig build test --summary all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Generate and Deploy Docs | ||
|
||
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: Build Docs | ||
run: zig build docs | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: zig-out/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# bitcoin-zig | ||
|
||
Libraries and primitives for Bitcoin, written in Zig. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters