Skip to content

Commit

Permalink
Separate go module for build (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
outofforest committed Apr 18, 2022
1 parent bafb122 commit b0d51a1
Show file tree
Hide file tree
Showing 6 changed files with 645 additions and 17 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ jobs:
persist-credentials: false
- name: CI
run: |
go build -o ./bin/tmp-build ./build/cmd
./bin/tmp-build dev/lint dev/test build
cd ./build
go build -o ../bin/tmp-build ./cmd
../bin/tmp-build dev/lint dev/test build
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
script: return context.ref.replace(/refs\/tags\//, '');
- name: Build OSMan
run: |
go build -o ./bin/tmp-build ./build/cmd
./bin/tmp-build build
cd ./build
go build -o ../bin/tmp-build ./cmd
../bin/tmp-build build
- name: Build RPM
id: rpm
uses: outofforest/rpmbuild@main
Expand Down
14 changes: 14 additions & 0 deletions build/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module build

go 1.16

replace github.com/ridge/parallel => github.com/outofforest/parallel v0.1.2

require (
github.com/outofforest/build v1.7.11
github.com/outofforest/buildgo v0.3.6
github.com/outofforest/ioc/v2 v2.5.0
github.com/outofforest/libexec v0.2.1
github.com/outofforest/osman v0.1.2
github.com/outofforest/run v0.2.2
)
Loading

0 comments on commit b0d51a1

Please sign in to comment.