Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/initdc/rust-project-workflow
Rust just need build once time!
https://github.com/initdc/rust-project-workflow
actions build docker release rust workflow
Last synced: 9 days ago
JSON representation
Rust just need build once time!
- Host: GitHub
- URL: https://github.com/initdc/rust-project-workflow
- Owner: initdc
- License: mpl-2.0
- Created: 2022-07-23T18:52:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T14:36:42.000Z (about 2 years ago)
- Last Synced: 2024-11-19T20:19:25.047Z (2 months ago)
- Topics: actions, build, docker, release, rust, workflow
- Language: Ruby
- Homepage: https://dev.to/initd/golangrust-project-workflow-1592
- Size: 28.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Rust Project Workflow](https://github.com/initdc/rust-project-workflow)
> Project written by rust, you just need build once time.
## Build on Linux Host (Debian like)
1. deps
- rustc
- cargo
- ruby
- tree
- sha256sum
- docker2. build
> edit config and build CMD as you need
```
# build binarys
ruby build.rb --install-cc ## must run
ruby build.rb
ruby build.rb v0.1.1
ruby build.rb less ## build bin for LESS_OS_ARCH
echo > version.rb 'VERSION = "fix-bug-001"'
ruby build.rb test --run-test
# build docker images
ruby docker-tag.rb
ruby docker-tag.rb v0.1.1
ruby docker-tag.rb dev
ruby docker-tag.rb v$(TZ=Asia/Shanghai date +%Y.%m.%d)
```## GitHub actions
- build binarys
- upload release files
- build docker images## More about docker
Check https://github.com/initdc/ssh-proxy-by-caddy-l4
## License
MPL 2.0