thelounge: Build from git repository

'yarn global add https://github.com/thelounge/thelounge.git' doesn't work
because we now need to compile TypeScript to JavaScript when not downloading
from the package manager
This commit is contained in:
2023-05-30 21:52:11 +02:00
parent 2fb8ed4000
commit 5ec44e1417
3 changed files with 35 additions and 14 deletions

View File

@ -1004,8 +1004,18 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: yarn global add https://github.com/thelounge/thelounge.git
- name: Checkout TheLounge
uses: actions/checkout@v3
with:
path: thelounge
ref: master
repository: thelounge/thelounge
- name: Build TheLounge
run: |
cd $GITHUB_WORKSPACE/thelounge
yarn install
NODE_ENV=production yarn build
ln -s $(pwd)/index.js ~/.local/bin/thelounge
- name: Install system dependencies
run: sudo apt-get install atheme-services faketime
- name: Install irctest dependencies

View File

@ -1162,8 +1162,18 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: yarn global add thelounge@4.4.0
- name: Checkout TheLounge
uses: actions/checkout@v3
with:
path: thelounge
ref: v4.4.0
repository: thelounge/thelounge
- name: Build TheLounge
run: |
cd $GITHUB_WORKSPACE/thelounge
yarn install
NODE_ENV=production yarn build
ln -s $(pwd)/index.js ~/.local/bin/thelounge
- name: Install system dependencies
run: sudo apt-get install atheme-services faketime
- name: Install irctest dependencies

View File

@ -381,18 +381,19 @@ software:
thelounge:
name: TheLounge
repository: thelounge/thelounge
separate_build_job: false
install_steps:
stable:
- name: Install dependencies
run: yarn global add thelounge@4.4.0
release:
- name: Install dependencies
run: yarn global add thelounge
devel:
- name: Install dependencies
run: yarn global add https://github.com/thelounge/thelounge.git
refs:
stable: "v4.4.0"
release: "v4.4.0"
devel: "master"
devel_release: null
path: thelounge
build_script: |
cd $GITHUB_WORKSPACE/thelounge
yarn install
NODE_ENV=production yarn build
ln -s $(pwd)/index.js ~/.local/bin/thelounge
tests:
bahamut: