diff --git a/.github/logo.png b/.github/logo.png deleted file mode 100644 index 954fc273..00000000 Binary files a/.github/logo.png and /dev/null differ 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