Skip to content

Commit

Permalink
Added travis file
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Aug 4, 2023
1 parent 8ac585b commit cbf19f6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: rust
rust:
- stable

os: linux
dist: bionic

addons:
apt:
packages:
- gcc-arm-linux-gnueabihf
- libc6-armhf-cross
- libc6-dev-armhf-cross
- binutils-arm-linux-gnueabihf

before_script:
- rustup target add armv7-unknown-linux-musleabihf
- |
echo "[target.armv7-unknown-linux-musleabihf]" > ~/.cargo/config
echo "linker = \"arm-linux-gnueabihf-gcc\"" >> ~/.cargo/config
script:
- sed -i "s/version = \"0.1.0-snapshot\"/version = \"${TRAVIS_TAG#v}\"/g" Cargo.toml
- cargo install cargo-deb
- cargo build --release --target=armv7-unknown-linux-musleabihf
- cargo deb --target=armv7-unknown-linux-musleabihf
- ls target/armv7-unknown-linux-musleabihf/debian/*.deb
#- cargo test --target=armv7-unknown-linux-musleabihf

deploy:
provider: releases
token: $GITHUB_TOKEN
file:
- "target/armv7-unknown-linux-musleabihf/debian/tc2-agent_${TRAVIS_TAG#v}_armhf.deb"
skip_cleanup: true
on:
tags: true
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tc2-agent"
version = "0.1.0"
version = "0.1.0-snapshot"
edition = "2021"
description = "Program to read lepton frames from the RP2040"
license = "GPL v3.0"
Expand Down

0 comments on commit cbf19f6

Please sign in to comment.