Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit d52a786

Browse files
authored
Merge pull request #2 from hrntknr/experimental
Experimental
2 parents 9158d17 + bf3e90b commit d52a786

27 files changed

+1064
-3153
lines changed

.github/workflows/build.yml

+13-26
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,25 @@ jobs:
1616
os: macos-latest
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- uses: actions/checkout@v2
20-
21-
- name: Cache cargo registry
22-
uses: actions/cache@v1
23-
with:
24-
path: ~/.cargo/registry
25-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
26-
- name: Cache cargo index
27-
uses: actions/cache@v1
19+
- uses: actions/setup-go@v2
2820
with:
29-
path: ~/.cargo/git
30-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
31-
- name: Cache cargo build
32-
uses: actions/cache@v1
33-
with:
34-
path: target
35-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
21+
go-version: ^1.18
3622

37-
- uses: actions-rs/toolchain@v1
38-
with:
39-
toolchain: stable
40-
override: true
41-
- uses: actions-rs/cargo@v1
42-
with:
43-
command: build
44-
args: --release
45-
- run: strip target/release/ntf
23+
- uses: actions/checkout@v2
24+
25+
- run: go build -ldflags "-s -w"
4626

4727
- uses: actions/upload-artifact@v1
4828
with:
4929
name: ntf-${{ matrix.target }}
50-
path: target/release/ntf
30+
path: ntf
31+
32+
- uses: actions/cache@v2
33+
with:
34+
path: ~/go/pkg/mod
35+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
36+
restore-keys: |
37+
${{ runner.os }}-go-
5138
5239
create-release:
5340
needs:

.gitignore

+23-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
/target
1+
/ntf
2+
3+
# If you prefer the allow list template instead of the deny list, see community template:
4+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
5+
#
6+
# Binaries for programs and plugins
7+
*.exe
8+
*.exe~
9+
*.dll
10+
*.so
11+
*.dylib
12+
13+
# Test binary, built with `go test -c`
14+
*.test
15+
16+
# Output of the go coverage tool, specifically when used with LiteIDE
17+
*.out
18+
19+
# Dependency directories (remove the comment below to include it)
20+
# vendor/
21+
22+
# Go workspace file
23+
go.work

0 commit comments

Comments
 (0)