From f68ffa5954125135f4b2e175c9a44e021f34fa0f Mon Sep 17 00:00:00 2001 From: mrwulf Date: Tue, 30 Jun 2026 17:44:31 +0200 Subject: [PATCH] chore: remove upstream CI workflows (not our CI infrastructure) --- .github/workflows/build.yml | 43 ------- .github/workflows/docker.yml | 107 ------------------ .github/workflows/rustfmt_check.yml | 27 ----- .../workflows/trailing_whitespace_check.yml | 16 --- 4 files changed, 193 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/docker.yml delete mode 100644 .github/workflows/rustfmt_check.yml delete mode 100644 .github/workflows/trailing_whitespace_check.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 6acb8de85..000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,43 +0,0 @@ -on: - push: - branches: - - main - - dev - pull_request: - branches: - - main - - dev - -name: Build xous-core - -jobs: - build: - name: Setup Rust - runs-on: ubuntu-latest - strategy: - matrix: - task: ["bao1x-boot0", "bao1x-boot1", "bao1x-alt-boot1", "bao1x-baremetal-dabao", "dabao", "baosec", "hosted-bao1x-ci", "hosted-ci", "renode-image"] - steps: - - name: Install Ubuntu dependencies - run: | - sudo apt update - sudo apt install -y libxkbcommon-dev - - - name: Update to latest toolchain - run: rustup update - - - name: Checkout sources - uses: actions/checkout@v4 - - name: Fetch tags - run: git fetch --prune --unshallow --tags - - - uses: Swatinem/rust-cache@v1 - - - name: Install RISC-V toolkit - run: cargo xtask install-toolkit --force --no-verify - - - name: Clean out old target directory (in case of libstd change) - run: rm -rf target/* - - - name: Build CI targets - run: cargo xtask ${{ matrix.task }} --no-verify diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index b023d867c..000000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,107 +0,0 @@ -name: Docker - build baochip firmware - -on: - push: - branches: - - main - - docker-* - pull_request: - branches: - - main - -env: - REGISTRY: ghcr.io - IMAGE_PREFIX: ${{ github.repository }} - RUST_IMAGE_SHA256: 5fdb652f0f6e83c24ebbba6d9c51a9836c6f3c4fa12dc3040e6327c6eb355769 - RUST_VERSION: 1.93.0 - -jobs: - docker-build: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - strategy: - fail-fast: false - matrix: - task: - - name: dabao - os: xous - - name: baosec - os: xous - - name: bao1x-boot0 - os: none - - name: bao1x-boot1 - os: none - - name: bao1x-alt-boot1 - os: none - - name: bao1x-baremetal-dabao - os: none - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Fetch all tags - run: git fetch --prune --unshallow --tags - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - driver-opts: | - network=host - image=moby/buildkit:latest - - - name: Configure Docker daemon for performance - run: | - echo '{"max-concurrent-downloads": 10, "max-concurrent-uploads": 10}' | sudo tee /etc/docker/daemon.json - sudo systemctl restart docker - - - name: Log in to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.task.name }} - tags: | - type=ref,event=branch - type=ref,event=pr - type=sha,prefix=sha- - type=raw,value=latest,enable={{is_default_branch}} - - - name: Build ${{ matrix.task.name }} firmware - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - build-args: | - RUST_VERSION=${{ env.RUST_VERSION }} - IMG_SHA256=${{ env.RUST_IMAGE_SHA256 }} - task=${{ matrix.task.name }} - os=${{ matrix.task.os }} - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: | - type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/cache:${{ matrix.task.name }} - type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/cache:base - cache-to: ${{ github.event_name != 'pull_request' && format('type=registry,ref={0}/{1}/cache:{2},mode=max', env.REGISTRY, env.IMAGE_PREFIX, matrix.task.name) || '' }} - outputs: type=local,dest=./output - provenance: false - sbom: false - - - name: Upload ${{ matrix.task.name }} artifacts - uses: actions/upload-artifact@v4 - with: - name: ${{ matrix.task.name }} - path: | - ./output/*.uf2 - ./output/*.img - ./output/*.bin - retention-days: 90 diff --git a/.github/workflows/rustfmt_check.yml b/.github/workflows/rustfmt_check.yml deleted file mode 100644 index 364957825..000000000 --- a/.github/workflows/rustfmt_check.yml +++ /dev/null @@ -1,27 +0,0 @@ -# From https://github.com/samblenny/autofmt-demo/blob/main/.github/workflows/rustfmt_check.yml -name: rustfmt_check -on: push -jobs: - rustfmt_check: - runs-on: ubuntu-latest - steps: - - name: Check out branch source - uses: actions/checkout@v4 - - - name: Install rustfmt from nightly toolchain - run: | - rustup toolchain install nightly - rustup component add rustfmt --toolchain nightly - - - name: Ensure the `main` branch rustfmt is applied for the run - run: | - git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin main - git checkout origin/main rustfmt.toml - - - name: Generate dummy templates so formating checks don't choke on missing xtask-generated files - run: cargo xtask dummy-template - - - name: Run cargo +nightly fmt --check - run: cargo +nightly fmt --check - - - run: echo "status = ${{ job.status }}" \ No newline at end of file diff --git a/.github/workflows/trailing_whitespace_check.yml b/.github/workflows/trailing_whitespace_check.yml deleted file mode 100644 index 6ed97eb89..000000000 --- a/.github/workflows/trailing_whitespace_check.yml +++ /dev/null @@ -1,16 +0,0 @@ -# From https://github.com/samblenny/autofmt-demo/blob/main/.github/workflows/trailing_whitespace_check.yml -name: trailing_whitespace_check -on: push -jobs: - trailing_whitespace_check: - runs-on: ubuntu-latest - steps: - - name: Check out branch source - uses: actions/checkout@v4 - - - name: Check .rs files for trailing whitespace - run: > - find . -name '*.rs' -print0 - | xargs -0 grep -c --with-filename -P '[ \t]$' - | grep -v ':0$' - | perl -e 'while(<>){print;$n+=1};if($n>0){exit 1;};print "PASS\n";' \ No newline at end of file