Migrate website script view to vue3 and Monaco #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Truncated Cube Lamp CI | |
on: [ push ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- uses: pre-commit/[email protected] | |
build-website: | |
runs-on: ubuntu-latest | |
needs: [ lint ] | |
container: | |
image: node:22 | |
defaults: | |
run: | |
working-directory: ./website | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: install dependencies | |
run: npm ci | |
- name: build | |
run: npm run build | |
- name: package | |
run: npm run package | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: truncated-cube-website | |
path: website/truncated-website-build.tar.gz | |
build-service: | |
runs-on: ubuntu-latest | |
needs: [ lint ] | |
container: | |
image: ghcr.io/mercotui/truncated_buildenv:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install dependencies | |
run: git meta sync | |
- name: configure | |
run: mkdir build && cd build && cmake -GNinja ../service | |
- name: build | |
working-directory: ./build | |
run: ninja | |
- name: test | |
working-directory: ./build | |
run: ctest --progress --rerun-failed --output-on-failure |