From fcdddf0b2fa1be5e3d9662be50a691e2db2c92bf Mon Sep 17 00:00:00 2001 From: Madars Auns Date: Thu, 2 Jan 2025 10:18:58 +0200 Subject: [PATCH] Update and fix ci workflow --- .github/workflows/ci.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3755b0e..552a722 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,15 +12,15 @@ on: jobs: test-python: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: python-version: ['2.7', '3.11'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3 if: matrix.python-version != '2.7' - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Upgrade Python 3 pip @@ -30,6 +30,7 @@ jobs: - name: Set up Python 2 if: matrix.python-version == '2.7' run: | + sudo apt-get update sudo apt install -y python2 sudo ln -sf /usr/bin/python2 /usr/bin/python curl -L -O "https://bootstrap.pypa.io/pip/2.7/get-pip.py" @@ -50,15 +51,15 @@ jobs: CC: "gcc-10" CXX: "g++-10" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set enigma2 repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: 'OpenPLi/enigma2' ref: 'develop' path: './enigma2' - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install dependencies @@ -69,7 +70,7 @@ jobs: sudo apt-get -q update sudo apt install docbook-xsl gettext libunwind-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libfribidi-dev libavahi-client-dev libgif-dev mm-common - name: Set tuxtxt repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: 'OpenPLi/tuxtxt' path: './tuxtxt' @@ -138,13 +139,14 @@ jobs: deploy: needs: test-python if: always() && !contains(github.event.head_commit.message,'skip-release') && github.event_name == 'push' && needs.test-python.result == 'success' && github.repository == 'Taapat/skin-SimpleGray' && github.ref == 'refs/heads/master' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python 2.7 run: | + sudo apt-get update sudo apt install -y python2 sudo ln -sf /usr/bin/python2 /usr/bin/python - name: Compile sources