Skip to content

Commit

Permalink
Bump github actions actions
Browse files Browse the repository at this point in the history
Commit tittle shows github's genius naming in action
  • Loading branch information
Mercotui committed Oct 23, 2024
1 parent 0bd9f4e commit 94ae6a7
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,58 @@
name: Truncated Cube Lamp CI

on: [push]
on: [ push ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
- 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]
needs: [ lint ]
container:
image: node:16
image: node:22
defaults:
run:
working-directory: ./website
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: install dependencies
run: npm install
- name: build
run: npm run build
- name: package
run: npm run package
- uses: actions/upload-artifact@v2
with:
name: truncated-cube-website
path: website/truncated-website-build.tar.gz
- 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 install
- name: build
run: npm run build
- name: package
run: npm run package
- uses: actions/upload-artifact@v3
with:
name: truncated-cube-website
path: website/truncated-website-build.tar.gz

build-service:
runs-on: ubuntu-latest
needs: [lint]
needs: [ lint ]
container:
image: ghcr.io/mercotui/truncated_buildenv:latest
steps:
- uses: actions/checkout@v2
- 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
- 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

0 comments on commit 94ae6a7

Please sign in to comment.