Skip to content

Commit

Permalink
Refactor project.
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jul 12, 2023
1 parent 01ae3f7 commit 8d8a472
Show file tree
Hide file tree
Showing 43 changed files with 3,947 additions and 2,076 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
tags:
- 'v*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
Expand All @@ -25,20 +24,12 @@ jobs:
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_PASSWORD }}

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ secrets.CR_REGISTRY }}/ywserver/jarvis
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{raw}}
Expand All @@ -47,6 +38,6 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run clippy
run: cargo clippy --all-targets --all-features
run: cargo clippy --verbose --all-targets --all-features
- name: Run tests
run: cargo test
run: cargo test --verbose --workspace -- --nocapture
36 changes: 12 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
# 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
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Test binary, built with `go test -c`
*.test
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
# Cargo.lock

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# These are backup files generated by rustfmt
**/*.rs.bk

# Dependency directories (remove the comment below to include it)
# vendor/
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Go workspace file
go.work
/debug

# Added by cargo

/target

config.toml
config.toml
Loading

0 comments on commit 8d8a472

Please sign in to comment.