From a75abd1dce2c05361a975b88afb3f81d0d1a70dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Abush=20CLAUSE?= Date: Thu, 23 Nov 2023 21:51:48 +0100 Subject: [PATCH] (tmp) Remove build add-on job --- .github/workflows/build_addon.yml | 64 ------------------------------- .github/workflows/scons.yml | 22 ----------- 2 files changed, 86 deletions(-) delete mode 100644 .github/workflows/build_addon.yml delete mode 100644 .github/workflows/scons.yml diff --git a/.github/workflows/build_addon.yml b/.github/workflows/build_addon.yml deleted file mode 100644 index 9b97cd9..0000000 --- a/.github/workflows/build_addon.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: build addon - -on: - push: - tags: ["*"] - # To build on main/master branch, uncomment the following line: - # branches: [ main , master ] - - pull_request: - branches: [ main, master ] - - workflow_dispatch: - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - run: echo -e "pre-commit\nscons\nmarkdown">requirements.txt - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.9 - cache: 'pip' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip wheel - pip install -r requirements.txt - sudo apt-get update -y - sudo apt-get install -y gettext - - - name: Code checks - run: export SKIP=no-commit-to-branch; pre-commit run --all - - - name: building addon - run: scons - - - uses: actions/upload-artifact@v3 - with: - name: packaged_addon - path: ./*.nvda-addon - - upload_release: - runs-on: ubuntu-latest - if: ${{ startsWith(github.ref, 'refs/tags/') }} - needs: ["build"] - steps: - - uses: actions/checkout@v3 - - name: download releases files - uses: actions/download-artifact@v3 - - name: Display structure of downloaded files - run: ls -R - - - name: Release - uses: softprops/action-gh-release@v1 - with: - files: packaged_addon/*.nvda-addon - fail_on_unmatched_files: true - prerelease: ${{ contains(github.ref, '-') }} diff --git a/.github/workflows/scons.yml b/.github/workflows/scons.yml deleted file mode 100644 index 2fcc817..0000000 --- a/.github/workflows/scons.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: scons -on: [push, pull_request] -jobs: - scons: - runs-on: ubuntu-latest - steps: - - name: Check out source repository - uses: actions/checkout@v2 - - name: Set up Python environment - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Install scons - run: pip install scons - - name: Install gettext - run: sudo apt-get install gettext - - name: Generating Addon - run: scons - - name: Upload artifact - uses: actions/upload-artifact@v2-preview - with: - path: ./*.nvda-addon \ No newline at end of file