Skip to content

trigger workflows

trigger workflows #760

Workflow file for this run

name: backend-build
on:
workflow_dispatch:
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
CARGO_INCREMENTAL: "0"
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
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
shared-key: build
cache-all-crates: true
cache-targets: true
cache-on-failure: true
# - uses: actions/cache@v4
# with:
# path: |
# ./target
# ~/.cargo
# key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', './rs') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', './rs') }}
# ${{ runner.os }}-build-
# - 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