From 21e0cb309ad68715ba8039e656a5c5d466d95798 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Sat, 16 Nov 2024 10:40:06 +1100 Subject: [PATCH] remove .github folder --- .github/logo.png | Bin 8166 -> 0 bytes .github/pull_request_template.md | 3 -- .github/renovate.json | 25 --------- .github/scripts/update-lockfiles.sh | 22 -------- .github/scripts/update-template-repo.sh | 27 ---------- .github/workflows/build-and-test.yml | 52 ------------------ .github/workflows/build-site.yml | 68 ------------------------ .github/workflows/publish-agb.yml | 41 -------------- 8 files changed, 238 deletions(-) delete mode 100644 .github/logo.png delete mode 100644 .github/pull_request_template.md delete mode 100644 .github/renovate.json delete mode 100755 .github/scripts/update-lockfiles.sh delete mode 100755 .github/scripts/update-template-repo.sh delete mode 100644 .github/workflows/build-and-test.yml delete mode 100644 .github/workflows/build-site.yml delete mode 100644 .github/workflows/publish-agb.yml diff --git a/.github/logo.png b/.github/logo.png deleted file mode 100644 index 954fc2739800898e92acb497b5451f7b22342b5f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8166 zcmdT}eNa#6i5P%_#%No3^Ct%`(6gzjx&t0l?wUiWbVv6 z_ug~P{oUXB-M?+#M4mqNqp1LZ=^NIs-2%YGMgZ{MlP94g4TayQp$13YLS79@C3Bwv z;9Iz1?W(ProL>3AlYSrS7V#PNpA9Q~7IrR}`_*4!E(iJC3&9nu0*ot!3|e~Izn+~| zth^6S?)v=f71HD%GCRM05SkI0oug1FN|#8Qo14kdbtXDNrF&7h?KqM_#f$#aefN|} zrk#S00w9cBP>9F=M9gT!VRrsxHDxky zjL&1~Z8lpIx8}IHOI7inuYK`t)H$$-k}mS_-Ma3HDOa_(Era|zM&H}X?;FP8)#?h0 z_KlZRS!QfYt%`lF*PH1qNceHWBFbuP)dTH$5B)N#VgqNJB(Odsvb&;0dnVnrdOX(L zQ_<+K7&QK>FcJwGyv(y<1=8D7QR#;H)~IP*G$gvaYZy3LkBE0U*~R)B-D7kt815kE zA`RV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$|lT>9*j*Vx{ ztS~Arb>_rSJfF`Ytqa1x`_a|nSk&Z^g92afKua87w$K`yheFaO%;CvL%mXI*z3DM$Ood;&dPqk) eyl-pVG{rButKVOzyntN^8`f=FTe>>_=>Gt-n>3;T diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 47e9ca94..00000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,3 +0,0 @@ - - -- [ ] Changelog updated / no changelog update needed diff --git a/.github/renovate.json b/.github/renovate.json deleted file mode 100644 index 14e70e72..00000000 --- a/.github/renovate.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": [ - "config:recommended" - ], - "ignorePresets": [ - ":prHourlyLimit2" - ], - "dependencyDashboardAutoclose": true, - "packageRules": [ - { - "groupName": "Javascript packages (non-major)", - "groupSlug": "js-update", - "schedule": [ - "on tuesday" - ], - "matchManagers": [ - "npm" - ], - "matchUpdateTypes": [ - "patch", - "minor" - ] - } - ] -} \ No newline at end of file diff --git a/.github/scripts/update-lockfiles.sh b/.github/scripts/update-lockfiles.sh deleted file mode 100755 index 14daabe8..00000000 --- a/.github/scripts/update-lockfiles.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -function update_lockfiles() { - find . -name Cargo.lock -execdir cargo update \; -} - -update_lockfiles -update_lockfiles -update_lockfiles -update_lockfiles - -if [ "$1" == '--commit' ]; then - git add -u - - if [ "$(git diff --cached --name-only)" == '' ]; then - echo "No files updated" - exit 0 - fi - - git -c user.name="GBA bot" -c user.email="gw@ilym.me" commit -m 'Update lockfiles' - git push -fi \ No newline at end of file diff --git a/.github/scripts/update-template-repo.sh b/.github/scripts/update-template-repo.sh deleted file mode 100755 index b04178df..00000000 --- a/.github/scripts/update-template-repo.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -set -e # Fail if any command fails -set -x # print every command before it runs - -# Updates the template repository to the content of the template directory -# Requires environment variable -# - GITHUB_USERNAME = a user who has push access to the template repository -# - API_TOKEN_GITHUB = an API token for the user - -CLONE_DIR=$(mktemp -d) - -git clone --single-branch --branch master "https://$GITHUB_USERNAME:$API_TOKEN_GITHUB@github.com/agbrs/template.git" "$CLONE_DIR" - -# Copy the .git directory to a different place so we can ensure that only the relevant template stuff stays -TEMP_DIR=$(mktemp -d) -mv "$CLONE_DIR/.git" "$TEMP_DIR/.git" - -cp -rva template/. "$TEMP_DIR" - -# git describe will give a unique, friendly name for the current commit to make it easier to track where this came from -VERSION=$(git describe --tags) -COMMIT_MESSAGE="Update to $VERSION" - -git -C "$TEMP_DIR" add . -git -C "$TEMP_DIR" -c user.email="gw@ilym.me" -c user.name="GBA bot" commit -m "$COMMIT_MESSAGE" -git -C "$TEMP_DIR" push origin HEAD \ No newline at end of file diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml deleted file mode 100644 index 5e022832..00000000 --- a/.github/workflows/build-and-test.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Rust - -on: - merge_group: - push: - branches: [master] - pull_request: - branches: [master] - schedule: - - cron: "10 6 * * *" - -env: - CARGO_TERM_COLOR: always - # RUSTUP_TOOLCHAIN: ${{ !github.event.schedule && 'nightly-2023-12-01' || 'nightly' }} - RUSTUP_TOOLCHAIN: "nightly" - -jobs: - build: - name: Just CI - runs-on: ubuntu-24.04 - steps: - - name: Set CARGO_TARGET_DIR - run: echo "CARGO_TARGET_DIR=$HOME/target" >> $GITHUB_ENV - - name: Install build tools - run: sudo apt-get update && sudo apt-get install build-essential libelf-dev zip libasound-dev -y - - name: Install Miri - run: | - rustup component add miri clippy rustfmt - cargo miri setup - - uses: actions/checkout@v4 - - name: Cache - uses: actions/cache@v4 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - ~/target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: install mgba-test-runner - run: cargo install --path emulator/test-runner --verbose - - uses: extractions/setup-just@v2 - - name: Setup mdBook - uses: peaceiris/actions-mdbook@v2 - with: - mdbook-version: "0.4.13" - - name: Build and test all crates - run: just ci - - name: Upload build artifacts - uses: actions/upload-artifact@v4 - with: - name: example-games - path: ~/target/*.gba diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml deleted file mode 100644 index 3b6680ee..00000000 --- a/.github/workflows/build-site.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Build and Deploy Website - -on: - merge_group: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - build: - name: Build website - runs-on: ubuntu-24.04 - steps: - - name: Set CARGO_TARGET_DIR - run: echo "CARGO_TARGET_DIR=$HOME/target" >> $GITHUB_ENV - - name: Install build tools - run: sudo apt-get update && sudo apt-get install build-essential libelf-dev zip -y - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Checkout latest released version's book - run: git restore --source $(git describe --tags --abbrev=0) book - - name: Cache - uses: actions/cache@v4 - with: - path: | - website/agb/node_modules - website/agb/.next/cache - ~/.cargo/registry - ~/.cargo/git - ~/target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}--npm--${{ hashFiles('**/package-lock.json') }} - - uses: extractions/setup-just@v2 - - name: Setup mdBook - uses: peaceiris/actions-mdbook@v2 - with: - mdbook-version: "0.4.13" - - name: Setup wasm - run: just setup-cargo-wasm - - name: Build website - run: just podman_command=docker build-site - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: "website/build" - deploy: - name: Deploy website - if: github.event_name == 'push' - # Add a dependency to the build job - needs: build - - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - - # Deploy to the github-pages environment - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - # Specify runner + deployment step - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/publish-agb.yml b/.github/workflows/publish-agb.yml deleted file mode 100644 index 90a55a1a..00000000 --- a/.github/workflows/publish-agb.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Publish agb - -on: - push: - tags: - - v* - -jobs: - build: - runs-on: ubuntu-24.04 - steps: - - name: Install build tools - run: sudo apt-get update && sudo apt-get install build-essential zip -y - - name: Check out repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Login to crates.io - run: cargo login ${{ secrets.CRATE_API }} - - - uses: extractions/setup-just@v2 - - - name: Publish crates - run: just publish - - - name: Update template repo - env: - GITHUB_USERNAME: gwilymk - API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} - run: bash .github/scripts/update-template-repo.sh - - - name: Build the examples - run: just build-roms - - name: Upload examples to the release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: examples/target/examples.zip - asset_name: examples.zip - tag: ${{ github.ref }} - overwrite: true