Add default attribute to PriceConfig in InRouteConfig and derive Defa… #29
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: Upload Daemon | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
setup-build-upload-linux-daemon: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
source $HOME/.cargo/env | |
- name: Install musl tools | |
run: sudo apt-get update && sudo apt-get install musl-tools | |
- name: Build Linux Binary | |
run: | | |
rustup target add x86_64-unknown-linux-musl | |
cargo build --release --target x86_64-unknown-linux-musl | |
- name: Install rclone | |
run: | | |
curl https://rclone.org/install.sh | sudo bash | |
- name: Configure rclone | |
env: | |
RCLONE_CONFIG_B2_TYPE: b2 | |
RCLONE_CONFIG_B2_ACCOUNT: ${{ secrets.B2_ACCOUNT_ID }} | |
RCLONE_CONFIG_B2_KEY: ${{ secrets.B2_APPLICATION_KEY }} | |
run: | | |
mkdir -p ~/.config/rclone | |
echo "[b2]" > ~/.config/rclone/rclone.conf | |
echo "type = $RCLONE_CONFIG_B2_TYPE" >> ~/.config/rclone/rclone.conf | |
echo "account = $RCLONE_CONFIG_B2_ACCOUNT" >> ~/.config/rclone/rclone.conf | |
echo "key = $RCLONE_CONFIG_B2_KEY" >> ~/.config/rclone/rclone.conf | |
- name: Upload Linux Binary to B2 | |
run: | | |
cp ./target/x86_64-unknown-linux-musl/release/earendil earendil-linux-amd64 | |
rclone copy ./earendil-linux-amd64 b2:earendil/ |