The ordering of the nodes should now be correct #28
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- controller/application/** | |
name: Publish controller | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
target: | |
- name: linux | |
platform: x86_64-unknown-linux-gnu | |
extension: "" | |
- name: windows | |
platform: x86_64-pc-windows-gnu | |
extension: ".exe" | |
feature: | |
- name: wasm-drivers | |
file-name: wasm | |
steps: | |
- uses: josStorer/get-current-time@v2 | |
id: current-time | |
with: | |
format: DD-MM-YYYY-hh-mm-ss | |
utcOffset: "+02:00" | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set Rust Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.target.platform }} | |
- name: Install Protobuf and MinGW (for Windows build) | |
run: | | |
sudo apt update | |
sudo apt install protobuf-compiler gcc-mingw-w64 -y | |
- name: Build Controller | |
working-directory: controller/ | |
run: cargo build -p controller --release --target ${{ matrix.target.platform }} --features ${{ matrix.feature.name }} | |
- name: Copy Executable | |
if: success() | |
run: | | |
mv controller/target/${{ matrix.target.platform }}/release/controller${{ matrix.target.extension }} controller-${{ matrix.target.name }}-${{ matrix.feature.file-name }}${{ matrix.target.extension }} | |
- name: Upload file to Github | |
if: success() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: controller-${{ matrix.target.name }}-${{ matrix.feature.file-name }} | |
path: | | |
controller-${{ matrix.target.name }}-${{ matrix.feature.file-name }}${{ matrix.target.extension }} | |
LICENSE |