mirror of
https://github.com/bybrooklyn/openbitdo.git
synced 2026-03-19 04:12:56 -04:00
ci: drop self-hosted hardware runner requirements
This commit is contained in:
131
.github/workflows/ci.yml
vendored
131
.github/workflows/ci.yml
vendored
@@ -143,27 +143,6 @@ jobs:
|
||||
name: ci-linux-aarch64-package
|
||||
path: sdk/dist/openbitdo-v0.0.0-ci-linux-aarch64*
|
||||
|
||||
hardware-paths:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
hardware: ${{ steps.filter.outputs.hardware }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dorny/paths-filter@v3
|
||||
id: filter
|
||||
with:
|
||||
filters: |
|
||||
hardware:
|
||||
- 'sdk/crates/bitdo_proto/**'
|
||||
- 'sdk/crates/bitdo_app_core/**'
|
||||
- 'sdk/crates/bitdo_tui/**'
|
||||
- 'sdk/crates/openbitdo/**'
|
||||
- 'sdk/tests/**'
|
||||
- 'sdk/scripts/run_hardware_smoke.sh'
|
||||
- 'spec/**'
|
||||
- 'harness/lab/device_lab.yaml'
|
||||
- '.github/workflows/ci.yml'
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
@@ -188,113 +167,3 @@ jobs:
|
||||
run: cargo clippy --workspace --all-targets -- -D warnings
|
||||
- name: Run tests
|
||||
run: cargo test --workspace --all-targets
|
||||
|
||||
hardware-dinput:
|
||||
if: vars.BITDO_ENABLE_EXTRA_HARDWARE == '1'
|
||||
runs-on: [self-hosted, linux, hid-lab]
|
||||
needs: test
|
||||
env:
|
||||
BITDO_REQUIRED_FAMILIES: DInput
|
||||
defaults:
|
||||
run:
|
||||
working-directory: sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Hardware smoke tests
|
||||
run: ./scripts/run_hardware_smoke.sh
|
||||
- name: Upload hardware smoke report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hardware-smoke-dinput
|
||||
path: harness/reports/*.json
|
||||
|
||||
hardware-standard64:
|
||||
if: vars.BITDO_ENABLE_EXTRA_HARDWARE == '1'
|
||||
runs-on: [self-hosted, linux, hid-lab]
|
||||
needs: test
|
||||
env:
|
||||
BITDO_REQUIRED_FAMILIES: Standard64
|
||||
defaults:
|
||||
run:
|
||||
working-directory: sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Hardware smoke tests
|
||||
run: ./scripts/run_hardware_smoke.sh
|
||||
- name: Upload hardware smoke report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hardware-smoke-standard64
|
||||
path: harness/reports/*.json
|
||||
|
||||
hardware-ultimate2:
|
||||
if: github.event_name == 'schedule' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || needs.hardware-paths.outputs.hardware == 'true'
|
||||
runs-on: [self-hosted, linux, hid-lab]
|
||||
needs: [test, hardware-paths]
|
||||
env:
|
||||
BITDO_REQUIRED_SUITE: ultimate2
|
||||
defaults:
|
||||
run:
|
||||
working-directory: sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Hardware smoke tests (Ultimate2)
|
||||
run: ./scripts/run_hardware_smoke.sh
|
||||
- name: Upload hardware smoke report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hardware-smoke-ultimate2
|
||||
path: harness/reports/*.json
|
||||
|
||||
hardware-108jp:
|
||||
if: github.event_name == 'schedule' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || needs.hardware-paths.outputs.hardware == 'true'
|
||||
runs-on: [self-hosted, linux, hid-lab]
|
||||
needs: [test, hardware-paths]
|
||||
env:
|
||||
BITDO_REQUIRED_SUITE: 108jp
|
||||
defaults:
|
||||
run:
|
||||
working-directory: sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Hardware smoke tests (JP108)
|
||||
run: ./scripts/run_hardware_smoke.sh
|
||||
- name: Upload hardware smoke report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hardware-smoke-108jp
|
||||
path: harness/reports/*.json
|
||||
|
||||
hardware-jphandshake:
|
||||
if: vars.BITDO_ENABLE_JP_HARDWARE == '1'
|
||||
runs-on: [self-hosted, linux, hid-lab]
|
||||
needs: test
|
||||
env:
|
||||
BITDO_REQUIRED_FAMILIES: JpHandshake
|
||||
defaults:
|
||||
run:
|
||||
working-directory: sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Hardware smoke tests
|
||||
run: ./scripts/run_hardware_smoke.sh
|
||||
- name: Upload hardware smoke report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hardware-smoke-jphandshake
|
||||
path: harness/reports/*.json
|
||||
|
||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -67,7 +67,7 @@ jobs:
|
||||
[[ -n "${HOMEBREW_TAP_REPO:-}" ]] || { echo "missing required variable: HOMEBREW_TAP_REPO" >&2; exit 1; }
|
||||
gh repo view "${HOMEBREW_TAP_REPO}" >/dev/null
|
||||
|
||||
- name: Require successful CI and hardware checks on tagged commit
|
||||
- name: Require successful CI checks on tagged commit
|
||||
working-directory: ${{ github.workspace }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -79,8 +79,6 @@ jobs:
|
||||
tui-smoke-test
|
||||
build-macos-arm64
|
||||
test
|
||||
hardware-ultimate2
|
||||
hardware-108jp
|
||||
)
|
||||
check_runs_json="$(gh api "repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}/check-runs")"
|
||||
failed=0
|
||||
|
||||
Reference in New Issue
Block a user