feat: configure redis and juxtapose base URL using env variables #18
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: | |
- master | |
workflow_dispatch: | |
name: Build for arm64 | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install Dependencies | |
run: sudo apt-get install -y gcc-aarch64-linux-gnu libc-dev-arm64-cross | |
- name: Install toolchain | |
id: toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: aarch64-unknown-linux-gnu | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache | |
uses: actions/cache@v3 | |
env: | |
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 10 | |
with: | |
path: | | |
target/ | |
~/.cargo/registry/ | |
~/.cargo/git/ | |
key: cargo-${{ runner.os }}-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.workflow_sha }} | |
restore-keys: cargo-${{ runner.os }}-${{ steps.toolchain.outputs.cachekey }} | |
- name: Compile | |
run: cargo build --release --target aarch64-unknown-linux-gnu | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: preview_bot_arm64 | |
path: target/aarch64-unknown-linux-gnu/release/preview_bot | |
if-no-files-found: error |