-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 2.14 KB
/
ci.yml
File metadata and controls
52 lines (48 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This workflow will do a clean install of dependencies, installing the base utilities,
# run all tests, ensure they pass, and finally build a clean version of the control binary
#
# Continuous-Integration, baybeee!
name: CI
on:
push:
branches:
- "master"
jobs:
compile_and_package:
runs-on: ubuntu-latest
steps:
- name: Check out app
uses: actions/checkout@v2
- name: Install Pylon (x86)
run: |
wget "https://www.baslerweb.com/fp-1615275617/media/downloads/software/pylon_software/pylon_6.2.0.21487-deb0_amd64.deb"
sudo apt install ./pylon_6.2.0.21487-deb0_amd64.deb
- name: Write .sos over w/ Pylon (arm)
run: |
wget "https://www.baslerweb.com/fp-1615275603/media/downloads/software/pylon_software/pylon_6.2.0.21487_armhf_setup.tar.gz"
mkdir pylon
tar -C ./pylon -xzf ./pylon_6.2.0.21487_armhf_setup.tar.gz
pushd ./pylon
sudo tar --overwrite-dir -C /opt/pylon -xzf ./pylon_*.tar.gz
sudo chmod 755 /opt/pylon
popd
- name: Setup Rustup toolchain
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install the ARMV7 gnueabihf target
run: rustup target add armv7-unknown-linux-gnueabihf
- name: Install cross-compilation linker
run: sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
- name: Symblink all system headers
run: sudo ln -s /usr/arm-linux-gnueabihf/include/asm /usr/include && sudo ln -s /usr/arm-linux-gnueabihf/include/sys /usr/include && sudo ln -s /usr/arm-linux-gnueabihf/include/bits /usr/include && sudo ln -s /usr/arm-linux-gnueabihf/include/gnu /usr/include
- name: Build binary
run: cargo build --release --target=armv7-unknown-linux-gnueabihf
- name: Upload built supports
uses: actions/upload-artifact@v2
with:
name: built_binaries
path: target/armv7-unknown-linux-gnueabihf/release
- name: Upload built binaries
uses: actions/upload-artifact@v2
with:
name: control
path: target/armv7-unknown-linux-gnueabihf/release/control