mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
remove .github folder
This commit is contained in:
parent
22167ac608
commit
21e0cb309a
BIN
.github/logo.png
vendored
BIN
.github/logo.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 8 KiB |
3
.github/pull_request_template.md
vendored
3
.github/pull_request_template.md
vendored
|
@ -1,3 +0,0 @@
|
|||
|
||||
|
||||
- [ ] Changelog updated / no changelog update needed
|
25
.github/renovate.json
vendored
25
.github/renovate.json
vendored
|
@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
22
.github/scripts/update-lockfiles.sh
vendored
22
.github/scripts/update-lockfiles.sh
vendored
|
@ -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
|
27
.github/scripts/update-template-repo.sh
vendored
27
.github/scripts/update-template-repo.sh
vendored
|
@ -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
|
52
.github/workflows/build-and-test.yml
vendored
52
.github/workflows/build-and-test.yml
vendored
|
@ -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
|
68
.github/workflows/build-site.yml
vendored
68
.github/workflows/build-site.yml
vendored
|
@ -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
|
41
.github/workflows/publish-agb.yml
vendored
41
.github/workflows/publish-agb.yml
vendored
|
@ -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
|
Loading…
Reference in a new issue