mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
fix ci
This commit is contained in:
parent
28c23a0553
commit
1273c18962
3 changed files with 7 additions and 22 deletions
4
.github/workflows/android-ci.yml
vendored
4
.github/workflows/android-ci.yml
vendored
|
|
@ -2,12 +2,12 @@ name: Android CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, master]
|
branches: [master]
|
||||||
paths:
|
paths:
|
||||||
- 'android/**'
|
- 'android/**'
|
||||||
- '.github/workflows/android-ci.yml'
|
- '.github/workflows/android-ci.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, master]
|
branches: [master]
|
||||||
paths:
|
paths:
|
||||||
- 'android/**'
|
- 'android/**'
|
||||||
- '.github/workflows/android-ci.yml'
|
- '.github/workflows/android-ci.yml'
|
||||||
|
|
|
||||||
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -2,12 +2,12 @@ name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, master]
|
branches: [master]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'android/**'
|
- 'android/**'
|
||||||
- '.github/workflows/android-ci.yml'
|
- '.github/workflows/android-ci.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, master]
|
branches: [master]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'android/**'
|
- 'android/**'
|
||||||
- '.github/workflows/android-ci.yml'
|
- '.github/workflows/android-ci.yml'
|
||||||
|
|
@ -21,10 +21,10 @@ jobs:
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: 1.3.5
|
bun-version: 1.3.6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install && cd server && bun install
|
||||||
|
|
||||||
- name: Lint and type check
|
- name: Lint and type check
|
||||||
run: bun run check
|
run: bun run check
|
||||||
|
|
@ -32,6 +32,3 @@ jobs:
|
||||||
- name: Build server
|
- name: Build server
|
||||||
run: cd server && bun run build
|
run: cd server && bun run build
|
||||||
|
|
||||||
- name: Build proton-bridge
|
|
||||||
run: cd proton-bridge && bun run build
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,7 @@
|
||||||
import { $ } from 'bun';
|
import { $ } from 'bun';
|
||||||
|
|
||||||
const service = process.argv[2];
|
|
||||||
|
|
||||||
if (!service || !['server', 'bridge'].includes(service)) {
|
|
||||||
console.error('Usage: bun run docker:release <service>');
|
|
||||||
console.error('Example: bun run docker:release server');
|
|
||||||
console.error(' bun run docker:release bridge');
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
const registry = 'ghcr.io/lone-cloud';
|
const registry = 'ghcr.io/lone-cloud';
|
||||||
const config =
|
const config = { name: 'sup-server', path: './server' };
|
||||||
service === 'server'
|
|
||||||
? { name: 'sup-server', path: './server' }
|
|
||||||
: { name: 'sup-proton-bridge', path: './proton-bridge' };
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const packageJson = await Bun.file(`${config.path}/package.json`).json();
|
const packageJson = await Bun.file(`${config.path}/package.json`).json();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue