Skip to content

core: use metre from crates.io as it is now published as a separate crate #744

core: use metre from crates.io as it is now published as a separate crate

core: use metre from crates.io as it is now published as a separate crate #744

Workflow file for this run

name: backend-build
on:
push:
paths:
- "rs/**"
- "Cargo.toml"
- "Cargo.lock"
- "openstream.sample.toml"
- "openstream.sample.jsonc"
branches: [ master, dev ]
pull_request:
paths:
- "rs/**"
- "Cargo.toml"
- "Cargo.lock"
- "openstream.sample.toml"
- "openstream.sample.jsonc"
branches: [ master, dev ]
env:
CARGO_TERM_COLOR: always
jobs:
# skip_check:
# runs-on: ubuntu-latest
# outputs:
# should_skip: ${{ steps.skip_check.outputs.should_skip }}
# steps:
# - id: skip_check
# uses: fkirc/skip-duplicate-actions@v5
backend-build:
# needs: skip_check
# if: needs.skip_check.outputs.should_skip != 'true'
runs-on: self-hosted-build
steps:
- uses: actions/checkout@v3
# - uses: actions/cache@v3
# with:
# path: ./target
# key: ${{ runner.os }}-cargo-build-release-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', './rs') }}
# restore-keys: |
# ${{ runner.os }}-cargo-build-release-
- name: Local cargo cache
id: build-cargo-cache
uses: MasterworksIO/[email protected]
with:
path: ./target/
key: build-cargo-target
- name: Cargo Build
run: cargo build