Robotmk #23
Workflow file for this run
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
--- | |
name: "Robotmk" | |
on: | |
push: | |
paths: | |
- .github/workflows/robotmk.yml | |
pull_request: | |
paths: | |
- .github/workflows/robotmk.yml | |
workflow_call: {} | |
jobs: | |
build_robotmk_from_source: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
with: | |
repository: elabit/robotmk | |
ref: 610122edc937bfd74c4879cc85df365c9db437aa | |
path: robotmk | |
- name: "Setup Rust" | |
uses: actions-rust-lang/[email protected] | |
with: | |
target: x86_64-pc-windows-gnu | |
- name: "Install MinGW-w64" | |
run: sudo apt-get install -y mingw-w64 | |
- name: "Build Robotmk Windows" | |
working-directory: robotmk/v2/rust/ | |
run: cargo build --target=x86_64-pc-windows-gnu --release | |
- name: "Build Robotmk Linux" | |
working-directory: robotmk/v2/rust/ | |
run: cargo build --release | |
- name: "Upload Artifact" | |
uses: actions/upload-artifact@v3 | |
with: | |
path: | | |
robotmk/v2/rust/target/x86_64-pc-windows-gnu/release/robotmk.exe | |
robotmk/v2/rust/target/release/robotmk | |
if-no-files-found: error |