Skip to content

Commit

Permalink
Merge pull request #2 from hrntknr/experimental
Browse files Browse the repository at this point in the history
Experimental
  • Loading branch information
hrntknr authored Jul 25, 2022
2 parents 9158d17 + bf3e90b commit d52a786
Show file tree
Hide file tree
Showing 27 changed files with 1,064 additions and 3,153 deletions.
39 changes: 13 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,25 @@ jobs:
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
- uses: actions/setup-go@v2
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
go-version: ^1.18

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- run: strip target/release/ntf
- uses: actions/checkout@v2

- run: go build -ldflags "-s -w"

- uses: actions/upload-artifact@v1
with:
name: ntf-${{ matrix.target }}
path: target/release/ntf
path: ntf

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
create-release:
needs:
Expand Down
24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
/target
/ntf

# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
Loading

0 comments on commit d52a786

Please sign in to comment.