Skip to content

Commit

Permalink
Add workflow for building binaries
Browse files Browse the repository at this point in the history
CMK-14985
  • Loading branch information
SoloJacobs committed Nov 7, 2023
1 parent 3654e02 commit df925de
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/robotmk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "Robotmk"
on:
push:
paths:
- .github/workflows/robotmk.yaml
pull_request:
paths:
- .github/workflows/robotmk.yaml
workflow_call: {}

jobs:
build_robotmk_from_source:
runs-on: ubuntu-latest

steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- 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: "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/x86_64-pc-windows-gnu/release/robotmk_agent.exe
if-no-files-found: error

0 comments on commit df925de

Please sign in to comment.