File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : OSCPS_Release_Workflow
2+
3+ on :
4+ workflow_dispatch : # Enables manual triggering from GitHub Actions UI
5+
6+ jobs :
7+ build :
8+ name : Build and Release
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v4
14+
15+ - name : Install Rust
16+ uses : dtolnay/rust-toolchain@stable
17+
18+ - name : Build release binary
19+ run : cargo build --release
20+
21+ - name : Compress binary
22+ run : |
23+ mkdir -p release
24+ cp target/release/your-binary-name release/
25+ cd release
26+ tar -czvf your-binary-name-linux.tar.gz your-binary-name
27+ shell : bash
28+
29+ - name : Create GitHub Release and Upload Binary
30+ uses : softprops/action-gh-release@v2
31+ with :
32+ files : release/your-binary-name-linux.tar.gz
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+
Original file line number Diff line number Diff line change @@ -11,7 +11,3 @@ pub mod connector;
1111pub mod simulation;
1212pub mod thermodynamics;
1313
14- /// An example function. This will be removed in the final release.
15- pub fn hello ( ) -> String {
16- "Hello, world!" . to_string ( )
17- }
You can’t perform that action at this time.
0 commit comments