Skip to content

Commit

Permalink
Update and fix ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Taapat authored Jan 2, 2025
1 parent 9546476 commit fcdddf0
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fcdddf0

Please sign in to comment.