-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include Linux binaries in release workflow & bump version
Also use the scheduler binary for Linux in the release workflow to query the version. CMK-18620
- Loading branch information
Showing
4 changed files
with
38 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,15 +18,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions-rust-lang/[email protected] | ||
with: | ||
target: x86_64-unknown-linux-gnu | ||
# By default, setup-rust-toolchain sets "-D warnings". As a side effect, the settings in | ||
# .cargo/config.toml are ignored: | ||
# https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags | ||
# "There are four mutually exclusive sources of extra flags" | ||
rustflags: "" | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: rcc | ||
|
@@ -37,12 +28,20 @@ jobs: | |
name: rmk_windows64 | ||
path: artifact/rmk_windows64/ | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: rmk_linux64 | ||
path: artifact/rmk_linux64/ | ||
|
||
- run: zip -r executables.zip artifact | ||
|
||
- name: "Compute release tag" | ||
id: compute-tag | ||
run: | | ||
version="$(cargo run --bin robotmk_scheduler -- --version | cut --delimiter " " --fields 2)" | ||
# file permissions are not retained during upload: | ||
# https://github.com/actions/upload-artifact?tab=readme-ov-file#permission-loss | ||
chmod +x artifact/rmk_linux64/robotmk_scheduler | ||
version="$(./artifact/rmk_linux64/robotmk_scheduler --version | cut --delimiter " " --fields 2)" | ||
echo "TAG=v${version}" >> "${GITHUB_OUTPUT}" | ||
- name: "Push release tag" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ name: "Build Robotmk" | |
on: | ||
workflow_call: {} | ||
jobs: | ||
build_robotmk: | ||
build_windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -24,6 +24,30 @@ jobs: | |
with: | ||
name: rmk_windows64 | ||
path: | | ||
${{ github.workspace }}/target/x86_64-pc-windows-gnu/release/robotmk_scheduler.exe | ||
${{ github.workspace }}/target/x86_64-pc-windows-gnu/release/robotmk_agent_plugin.exe | ||
target/x86_64-pc-windows-gnu/release/robotmk_scheduler.exe | ||
target/x86_64-pc-windows-gnu/release/robotmk_agent_plugin.exe | ||
if-no-files-found: error | ||
|
||
build_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions-rust-lang/[email protected] | ||
with: | ||
target: x86_64-unknown-linux-gnu | ||
# By default, setup-rust-toolchain sets "-D warnings". As a side effect, the settings in | ||
# .cargo/config.toml are ignored: | ||
# https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags | ||
# "There are four mutually exclusive sources of extra flags" | ||
rustflags: "" | ||
|
||
- run: cargo build --target=x86_64-unknown-linux-gnu --release | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: rmk_linux64 | ||
path: | | ||
target/x86_64-unknown-linux-gnu/release/robotmk_scheduler | ||
target/x86_64-unknown-linux-gnu/release/robotmk_agent_plugin | ||
if-no-files-found: error |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters