From be2674ec54a2db5afec047dc601dfe74c37b731a Mon Sep 17 00:00:00 2001 From: Nathan Vieira Marcelino Date: Thu, 29 Aug 2024 18:29:47 -0300 Subject: [PATCH] fix: ubuntu build --- .github/workflows/build-and-release-linux.yml | 18 ++++++++++++----- .github/workflows/test-build-linux.yml | 20 +++++++++++++------ 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-release-linux.yml b/.github/workflows/build-and-release-linux.yml index b5c6f85..3cca792 100644 --- a/.github/workflows/build-and-release-linux.yml +++ b/.github/workflows/build-and-release-linux.yml @@ -26,15 +26,23 @@ jobs: with: python-version: "3.11" - - name: install python dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - uses: actions/setup-node@v4 with: node-version: "20" + - name: install necessary libs + run: | + sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \ + libnotify-dev libasound2-dev libcap-dev \ + libcups2-dev libxtst-dev \ + libxss1 libnss3-dev gcc-multilib g++-multilib curl \ + gperf bison python3-dbusmock openjdk-8-jre + + - name: install python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Install dependencies run: npm install diff --git a/.github/workflows/test-build-linux.yml b/.github/workflows/test-build-linux.yml index 2ecff40..a9062fd 100644 --- a/.github/workflows/test-build-linux.yml +++ b/.github/workflows/test-build-linux.yml @@ -3,7 +3,7 @@ run-name: ${{ github.actor }} is building for Linux. on: pull_request: - branches: [ main ] + branches: [main] jobs: test-on-linux: @@ -20,15 +20,23 @@ jobs: with: python-version: "3.11" - - name: install python dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - uses: actions/setup-node@v4 with: node-version: "20" + - name: install necessary libs + run: | + sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \ + libnotify-dev libasound2-dev libcap-dev \ + libcups2-dev libxtst-dev \ + libxss1 libnss3-dev gcc-multilib g++-multilib curl \ + gperf bison python3-dbusmock openjdk-8-jre + + - name: install python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Install dependencies run: npm install