remove .github folder

This commit is contained in:
Alex Janka 2024-11-16 10:40:06 +11:00
parent 22167ac608
commit 21e0cb309a
8 changed files with 0 additions and 238 deletions

BIN
.github/logo.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8 KiB

View file

@ -1,3 +0,0 @@
- [ ] Changelog updated / no changelog update needed

25
.github/renovate.json vendored
View file

@ -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"
]
}
]
}

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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