-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[github] Update deprecated workflows
- Loading branch information
1 parent
20982e2
commit 1a3dff7
Showing
2 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build and run tests | ||
on: [push, pull_request] | ||
env: | ||
app_id: visualization.milkdrop | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: "Debian package test" | ||
os: ubuntu-latest | ||
CC: gcc | ||
CXX: g++ | ||
DEBIAN_BUILD: true | ||
steps: | ||
- name: Install needed ubuntu depends | ||
env: | ||
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }} | ||
run: | | ||
if [[ $DEBIAN_BUILD == true ]]; then sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly; fi | ||
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@v4 | ||
with: | ||
repository: xbmc/xbmc | ||
ref: master | ||
path: xbmc | ||
- name: Checkout add-on repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ${{ env.app_id }} | ||
- name: Configure | ||
env: | ||
CC: ${{ matrix.CC }} | ||
CXX: ${{ matrix.CXX }} | ||
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }} | ||
run: | | ||
if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id} && mkdir -p build && cd build; fi | ||
if [[ $DEBIAN_BUILD != true ]]; then cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=${{ github.workspace }} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/xbmc/addons -DPACKAGE_ZIP=1 ${{ github.workspace }}/xbmc/cmake/addons; fi | ||
if [[ $DEBIAN_BUILD == true ]]; then wget https://raw.githubusercontent.com/xbmc/xbmc/master/xbmc/addons/kodi-dev-kit/tools/debian-addon-package-test.sh && chmod +x ./debian-addon-package-test.sh; fi | ||
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get build-dep ${{ github.workspace }}/${app_id}; fi | ||
- name: Build | ||
env: | ||
CC: ${{ matrix.CC }} | ||
CXX: ${{ matrix.CXX }} | ||
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }} | ||
run: | | ||
if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id}/build; fi | ||
if [[ $DEBIAN_BUILD != true ]]; then make; fi | ||
if [[ $DEBIAN_BUILD == true ]]; then ./debian-addon-package-test.sh ${{ github.workspace }}/${app_id}; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters