mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-15 21:03:47 +00:00
chore: migrate from blacksmith to fully use self-hosted workers
This commit is contained in:
@@ -17,7 +17,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -86,6 +85,8 @@ jobs:
|
|||||||
org.opencontainers.image.source=https://github.com/${{ github.repository }}
|
org.opencontainers.image.source=https://github.com/${{ github.repository }}
|
||||||
org.opencontainers.image.revision=${{ github.sha }}
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
org.opencontainers.image.created=${{ github.run_id }}
|
org.opencontainers.image.created=${{ github.run_id }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
outputs: type=registry,compression=gzip,compression-level=9
|
outputs: type=registry,compression=gzip,compression-level=9
|
||||||
|
|
||||||
- name: Cleanup Docker
|
- name: Cleanup Docker
|
||||||
|
|||||||
@@ -131,7 +131,6 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
# runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
if: (github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'linux' || github.event.inputs.build_type == '') && github.event.inputs.artifact_destination != 'submit'
|
if: (github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'linux' || github.event.inputs.build_type == '') && github.event.inputs.artifact_destination != 'submit'
|
||||||
permissions:
|
permissions:
|
||||||
@@ -152,7 +151,8 @@ jobs:
|
|||||||
- name: Install system dependencies for AppImage
|
- name: Install system dependencies for AppImage
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libfuse2
|
sudo apt-get install -y libfuse2 g++-10
|
||||||
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -689,7 +689,6 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
submit-to-flatpak:
|
submit-to-flatpak:
|
||||||
# runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
if: github.event.inputs.artifact_destination == 'submit' && (github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'linux' || github.event.inputs.build_type == '')
|
if: github.event.inputs.artifact_destination == 'submit' && (github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'linux' || github.event.inputs.build_type == '')
|
||||||
needs: []
|
needs: []
|
||||||
@@ -846,8 +845,7 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
upload-to-release:
|
upload-to-release:
|
||||||
# runs-on: blacksmith-4vcpu-ubuntu-2404
|
runs-on: ubuntu-latest
|
||||||
runs-on: self-hosted
|
|
||||||
if: github.event.inputs.artifact_destination == 'release'
|
if: github.event.inputs.artifact_destination == 'release'
|
||||||
needs: [build-windows, build-linux, build-macos]
|
needs: [build-windows, build-linux, build-macos]
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
generate-openapi:
|
generate-openapi:
|
||||||
name: Generate OpenAPI JSON
|
name: Generate OpenAPI JSON
|
||||||
runs-on: blacksmith-2vcpu-ubuntu-2404
|
runs-on: self-hosted
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint-and-build:
|
lint-and-build:
|
||||||
runs-on: blacksmith-2vcpu-ubuntu-2404
|
runs-on: self-hosted
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
NODE_OPTIONS: "--max-old-space-size=4096"
|
||||||
@@ -19,6 +19,7 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
|
cache: "npm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
Reference in New Issue
Block a user