Skip to content

Commit

Permalink
Merge pull request xbmc#61 from phunkyfish/github-actions-v4
Browse files Browse the repository at this point in the history
Update deprecated GitHub workflows
  • Loading branch information
phunkyfish committed Feb 19, 2024
2 parents 828b9a4 + b8c9ac7 commit 3b3b1f2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 21 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@ jobs:
matrix:
include:
- name: "Debian package test"
os: ubuntu-18.04
os: ubuntu-latest
CC: gcc
CXX: g++
DEBIAN_BUILD: true
#- os: ubuntu-18.04
#CC: gcc
#CXX: g++
#- os: ubuntu-18.04
#CC: clang
#CXX: clang++
#- os: macos-10.15
steps:
- name: Install needed ubuntu depends
env:
Expand All @@ -31,13 +24,13 @@ jobs:
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get update; fi
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get install fakeroot; fi
- name: Checkout Kodi repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: xbmc/xbmc
ref: master
path: xbmc
- name: Checkout audiodecoder.sidplay repo
uses: actions/checkout@v2
- name: Checkout add-on repo
uses: actions/checkout@v4
with:
path: ${{ env.app_id }}
- name: Configure
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/sync-addon-metadata-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,44 @@ name: Sync addon metadata translations

on:
push:
branches: [ Matrix, Nexus ]
branches: [ Matrix, Nexus, Omega ]
paths:
- '**addon.xml'
- '**addon.xml.in'
- '**resource.language.**strings.po'

jobs:
default:
if: github.repository == 'xbmc/audiodecoder.sidplay'
runs-on: ubuntu-latest

strategy:

fail-fast: false
matrix:
python-version: [ 3.9 ]

steps:

- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: project

- name: Set up Python
uses: actions/setup-python@v2
- name: Checkout sync_addon_metadata_translations repository
uses: actions/checkout@v4
with:
repository: xbmc/sync_addon_metadata_translations
path: sync_addon_metadata_translations

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/xbmc/sync_addon_metadata_translations.git
python -m pip install sync_addon_metadata_translations/
- name: Run sync-addon-metadata-translations
run: |
Expand Down
16 changes: 13 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ variables:
trigger:
branches:
include:
- Matrix
- Nexus
- Omega
- releases/*
paths:
include:
Expand All @@ -29,16 +29,26 @@ jobs:
GENERATOR: "Visual Studio 17 2022"
ARCHITECTURE: x64
CONFIGURATION: Release
Win32-UWP:
GENERATOR: "Visual Studio 17 2022"
ARCHITECTURE: Win32
CONFIGURATION: Release
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
Win64-UWP:
GENERATOR: "Visual Studio 17 2022"
ARCHITECTURE: x64
CONFIGURATION: Release
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
ARM64-UWP:
ARM32-UWP:
GENERATOR: "Visual Studio 17 2022"
ARCHITECTURE: ARM64
ARCHITECTURE: ARM
CONFIGURATION: Release
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
#ARM64-UWP:
# GENERATOR: "Visual Studio 17 2022"
# ARCHITECTURE: ARM64
# CONFIGURATION: Release
# WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"

workspace:
clean: all
Expand Down

0 comments on commit 3b3b1f2

Please sign in to comment.