mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 21:21:58 -04:00
Self Hosted Runners
This commit is contained in:
parent
0bfdcd25fd
commit
1fac4b8d5e
5 changed files with 38 additions and 10 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -16,7 +16,7 @@ permissions: write-all
|
|||
jobs:
|
||||
Build:
|
||||
name: Build Equicord
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
38
.github/workflows/codeberg-mirror.yml
vendored
38
.github/workflows/codeberg-mirror.yml
vendored
|
@ -11,12 +11,38 @@ on:
|
|||
jobs:
|
||||
codeberg:
|
||||
name: Sync Codeberg and Github
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: pixta-dev/repository-mirroring-action@674e65a7d483ca28dafaacba0d07351bdcc8bd75 # v1.1.1
|
||||
with:
|
||||
target_repo_url: "git@codeberg.org:thororen/Equicord.git"
|
||||
|
||||
- name: Set up SSH private key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ env.ssh_private_key }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
env:
|
||||
ssh_private_key: ${{ secrets.CODEBERG }}
|
||||
|
||||
- name: Add SSH known host
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan -t rsa codeberg.org >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Set up SSH username
|
||||
run: |
|
||||
export GIT_SSH_COMMAND="ssh -v -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -l git"
|
||||
|
||||
- name: Add remote mirror and push
|
||||
run: |
|
||||
if git remote get-url mirror > /dev/null 2>&1; then
|
||||
git remote remove mirror
|
||||
fi
|
||||
git remote add mirror "${{ env.target_repo_url}}"
|
||||
git fetch --unshallow
|
||||
git push --tags --force --prune mirror "refs/remotes/origin/*:refs/heads/*"
|
||||
env:
|
||||
target_repo_url: "git@codeberg.org:thororen/Equicord.git"
|
||||
|
||||
- name: Clean up
|
||||
run: git remote remove mirror
|
||||
|
|
4
.github/workflows/reportBrokenPlugins.yml
vendored
4
.github/workflows/reportBrokenPlugins.yml
vendored
|
@ -17,7 +17,7 @@ on:
|
|||
jobs:
|
||||
TestPlugins:
|
||||
name: Test Patches
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
@ -39,6 +39,8 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
pnpm install --no-frozen-lockfile
|
||||
sudo apt update
|
||||
sudo apt-get install ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils -y
|
||||
|
||||
- name: Install Google Chrome
|
||||
id: setup-chrome
|
||||
|
|
2
.github/workflows/syncDev.yml
vendored
2
.github/workflows/syncDev.yml
vendored
|
@ -13,7 +13,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Sync Vencord Dev
|
||||
id: sync
|
||||
|
|
2
.github/workflows/syncMain.yml
vendored
2
.github/workflows/syncMain.yml
vendored
|
@ -13,7 +13,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Sync Vencord Main
|
||||
id: sync
|
||||
|
|
Loading…
Add table
Reference in a new issue