Skip to content

Commit

Permalink
bali clean
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Aug 31, 2024
1 parent 0a78cf0 commit 226bcd4
Show file tree
Hide file tree
Showing 27 changed files with 207 additions and 332 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
file_glob: true
file: dest/*
file: out/*
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
overwrite: true
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Super-Linter
uses: github/super-linter@v4.9.2
uses: super-linter/super-linter@v7.1.0
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_GO: true
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
*.zip
/*.sh
cmd/bali/bali
/bali
*.rpm
/dest/
/out/
3 changes: 1 addition & 2 deletions bali.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ version = "3.0.0"
license = "MIT"
prefix = "/usr/local"
crates = [
"cmd/bali", # crates
"cmd/peassets",
"cmd/bali", # crates
]

[[include]]
Expand Down
1 change: 1 addition & 0 deletions cmd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# cmd tools
2 changes: 1 addition & 1 deletion cmd/bali/command_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type BuildCommand struct {
Target string `name:"target" short:"T" help:"Target OS for which the code is compiled" default:"${target}"` // windows/darwin
Arch string `name:"arch" short:"A" help:"Target architecture for which the code is compiled" default:"${arch}"` // amd64/arm64 ...
Release string `name:"release" help:"Specifies the rpm package tag version"` // --release $TASK_ID
Destination string `name:"destination" short:"D" help:"Specify the package save destination" default:"dest"`
Destination string `name:"destination" short:"D" help:"Specify the package save destination" default:"out"`
Pack []string `name:"pack" help:"Packaged in a specific format. supported: zip, tar, sh, rpm"`
Compression string `name:"compression" help:"Specifies the compression method"`
}
Expand Down
15 changes: 13 additions & 2 deletions cmd/bali/command_clean.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
package main

import (
"github.com/balibuild/bali/v3/pkg/barrow"
)

type CleanCommand struct {
Force bool `name:"force" help:"Clean up all the builds"`
Destination string `name:"destination" short:"D" help:"Specify the package save destination" default:"out"`
}

func (c *CleanCommand) Run(g *Globals) error {

return nil
b := barrow.BarrowCtx{
CWD: g.M,
Out: g.B,
Destination: c.Destination,
Verbose: g.Verbose,
}
return b.Cleanup(c.Force)
}
157 changes: 0 additions & 157 deletions cmd/peassets/assets.go

This file was deleted.

8 changes: 0 additions & 8 deletions cmd/peassets/crate.toml

This file was deleted.

56 changes: 0 additions & 56 deletions cmd/peassets/main.go

This file was deleted.

Binary file removed cmd/peassets/res/peassets.ico
Binary file not shown.
62 changes: 0 additions & 62 deletions cmd/peassets/winres.toml

This file was deleted.

1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require (
github.com/alecthomas/kong v0.9.0
github.com/andybalholm/brotli v1.1.0
github.com/dsnet/compress v0.0.1
github.com/fcharlie/buna v0.6.0
github.com/google/rpmpack v0.6.0
github.com/klauspost/compress v1.17.9
github.com/pelletier/go-toml/v2 v2.2.3
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q=
github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo=
github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY=
github.com/fcharlie/buna v0.6.0 h1:8v9jZ20AbRKLIKw8MhUBK95KbTLvtkllWJljbehrjg0=
github.com/fcharlie/buna v0.6.0/go.mod h1:nqUuAPM0tAsVvQWUFcxqyCAJbGpFjzfQtMDz2JulGWk=
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/rpmpack v0.6.0 h1:LoQuqlw6kHRwg25n3M0xtYrW+z2pTkR0ae1xx11hRw8=
Expand Down
Loading

0 comments on commit 226bcd4

Please sign in to comment.