Skip to content

feat(framework:concurrent): semaphore condition #2237

feat(framework:concurrent): semaphore condition

feat(framework:concurrent): semaphore condition #2237

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
node-version: [20.x, 21.x, 22.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Libraries (Linux)
run: sudo apt update && sudo apt install build-essential librsvg2-dev libgif-dev giflib-tools libcurl4 libcurl4-gnutls-dev libgtk-3-dev libpango1.0-dev libpng-dev libpng++-dev libpng-tools libjpeg-tools libjpeg-progs libjpeg-dev -y
if: matrix.os == 'ubuntu-latest'
- name: Install Libraries and Tools (macOS)
run: brew install curl pkg-config cairo pango libpng jpeg giflib librsvg
if: matrix.os == 'macos-latest'
- name: "Install Native Libraries"
run: |
git clone https://github.com/Cogmasters/concord;
cd concord;
make;
sudo make install;
cd ..;
- name: "Install Dependencies"
run: npm install
- name: "Install Dev Dependencies"
run: npm install -D
- name: "Generate prisma client"
run: npx prisma generate
- name: "ESLint"
run: npm run lint -- --max-warnings=0
- name: "Build (TypeScript)"
run: npm run build --if-present
- name: "Build (Native)"
run: make
- name: "Test"
run: npx vitest run --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: onesoft-sudo/sudobot
blazebuild:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install tools on macOS
run: brew install curl pkg-config cairo pango libpng jpeg giflib librsvg
if: matrix.os == 'macos-latest'
- name: Build with BlazeBuild
run: ./blazew build