mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
ci, use available processor cores
This commit is contained in:
parent
d97d056c46
commit
7f3b89a7f2
1 changed files with 40 additions and 40 deletions
80
.github/workflows/ci.yml
vendored
80
.github/workflows/ci.yml
vendored
|
@ -4,7 +4,7 @@ jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
@ -14,16 +14,16 @@ jobs:
|
||||||
- name: configure
|
- name: configure
|
||||||
run: DUMP_CONFIG_LOG=1 ./configure
|
run: DUMP_CONFIG_LOG=1 ./configure
|
||||||
- name: make
|
- name: make
|
||||||
run: make -j2
|
run: make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
|
|
||||||
build-libretro:
|
build-libretro:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: make
|
- name: make
|
||||||
run: LDFLAGS=-Wl,--no-undefined make -j2 -f Makefile.libretro
|
run: LDFLAGS=-Wl,--no-undefined make -j$(getconf _NPROCESSORS_ONLN) -f Makefile.libretro
|
||||||
|
|
||||||
|
|
||||||
build-gp2x:
|
build-gp2x:
|
||||||
|
@ -32,7 +32,7 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
packages: read
|
packages: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -40,11 +40,11 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=gph
|
./configure --platform=gph
|
||||||
make -j2 PLATFORM_MP3=0
|
make -j$(getconf _NPROCESSORS_ONLN) PLATFORM_MP3=0
|
||||||
make -C platform/gp2x rel VER=$ver
|
make -C platform/gp2x rel VER=$ver
|
||||||
mv PicoDrive_$ver.zip PicoDrive-gph_$ver.zip
|
mv PicoDrive_$ver.zip PicoDrive-gph_$ver.zip
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: GP2X
|
name: GP2X
|
||||||
path: PicoDrive-gph_*.zip
|
path: PicoDrive-gph_*.zip
|
||||||
|
@ -53,7 +53,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/irixxxx/toolchain-pandora
|
container: ghcr.io/irixxxx/toolchain-pandora
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -61,11 +61,11 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=pandora
|
./configure --platform=pandora
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
make -C platform/pandora rel VER=$ver
|
make -C platform/pandora rel VER=$ver
|
||||||
mv platform/pandora/PicoDrive_*.pnd .
|
mv platform/pandora/PicoDrive_*.pnd .
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Pandora
|
name: Pandora
|
||||||
path: PicoDrive_*.pnd
|
path: PicoDrive_*.pnd
|
||||||
|
@ -77,7 +77,7 @@ jobs:
|
||||||
- name: build environment
|
- name: build environment
|
||||||
run: |
|
run: |
|
||||||
apk add git gcc g++ zip
|
apk add git gcc g++ zip
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -86,10 +86,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=psp
|
./configure --platform=psp
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
make -C platform/psp rel VER=$ver
|
make -C platform/psp rel VER=$ver
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: PSP
|
name: PSP
|
||||||
path: PicoDrive_psp_*.zip
|
path: PicoDrive_psp_*.zip
|
||||||
|
@ -101,7 +101,7 @@ jobs:
|
||||||
- name: build environment
|
- name: build environment
|
||||||
run: |
|
run: |
|
||||||
apk add build-base cmake git zip make
|
apk add build-base cmake git zip make
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -110,10 +110,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=ps2
|
./configure --platform=ps2
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
make -C platform/ps2 rel VER=$ver
|
make -C platform/ps2 rel VER=$ver
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: PS2
|
name: PS2
|
||||||
path: PicoDrive_ps2_*.zip
|
path: PicoDrive_ps2_*.zip
|
||||||
|
@ -125,7 +125,7 @@ jobs:
|
||||||
packages: read
|
packages: read
|
||||||
container: ghcr.io/irixxxx/toolchain-dingux
|
container: ghcr.io/irixxxx/toolchain-dingux
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -133,10 +133,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=dingux
|
./configure --platform=dingux
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
mv PicoDrive-dge.zip PicoDrive-dge-$ver.zip
|
mv PicoDrive-dge.zip PicoDrive-dge-$ver.zip
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Dingux
|
name: Dingux
|
||||||
path: PicoDrive-dge*.zip
|
path: PicoDrive-dge*.zip
|
||||||
|
@ -145,7 +145,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/irixxxx/toolchain-opendingux
|
container: ghcr.io/irixxxx/toolchain-opendingux
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -153,10 +153,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=opendingux-gcw0
|
./configure --platform=opendingux-gcw0
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
mv PicoDrive.opk PicoDrive-gcw0-$ver.opk
|
mv PicoDrive.opk PicoDrive-gcw0-$ver.opk
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: GCW0
|
name: GCW0
|
||||||
path: PicoDrive-gcw0*.opk
|
path: PicoDrive-gcw0*.opk
|
||||||
|
@ -165,7 +165,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/irixxxx/toolchain-opendingux
|
container: ghcr.io/irixxxx/toolchain-opendingux
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -173,10 +173,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=opendingux
|
./configure --platform=opendingux
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
mv PicoDrive.opk PicoDrive-opendingux-$ver.opk
|
mv PicoDrive.opk PicoDrive-opendingux-$ver.opk
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Opendingux
|
name: Opendingux
|
||||||
path: PicoDrive-opendingux*.opk
|
path: PicoDrive-opendingux*.opk
|
||||||
|
@ -187,7 +187,7 @@ jobs:
|
||||||
packages: read
|
packages: read
|
||||||
container: ghcr.io/irixxxx/toolchain-miyoo
|
container: ghcr.io/irixxxx/toolchain-miyoo
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -195,10 +195,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=miyoo
|
./configure --platform=miyoo
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
mv PicoDrive-miyoo.zip PicoDrive-miyoo-$ver.zip
|
mv PicoDrive-miyoo.zip PicoDrive-miyoo-$ver.zip
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Miyoo
|
name: Miyoo
|
||||||
path: PicoDrive-miyoo*.zip
|
path: PicoDrive-miyoo*.zip
|
||||||
|
@ -207,7 +207,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/irixxxx/toolchain-retrofw
|
container: ghcr.io/irixxxx/toolchain-retrofw
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -215,10 +215,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=retrofw
|
./configure --platform=retrofw
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
mv PicoDrive.opk PicoDrive-retrofw-$ver.opk
|
mv PicoDrive.opk PicoDrive-retrofw-$ver.opk
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: RetroFW
|
name: RetroFW
|
||||||
path: PicoDrive-retrofw*.opk
|
path: PicoDrive-retrofw*.opk
|
||||||
|
@ -227,7 +227,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/irixxxx/toolchain-odbeta-gcw0
|
container: ghcr.io/irixxxx/toolchain-odbeta-gcw0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -235,10 +235,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=odbeta
|
./configure --platform=odbeta
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
mv PicoDrive.opk PicoDrive-odbeta-gcw0-$ver.opk
|
mv PicoDrive.opk PicoDrive-odbeta-gcw0-$ver.opk
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ODbeta gcw0
|
name: ODbeta gcw0
|
||||||
path: PicoDrive-odbeta-*.opk
|
path: PicoDrive-odbeta-*.opk
|
||||||
|
@ -247,7 +247,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/irixxxx/toolchain-odbeta-lepus
|
container: ghcr.io/irixxxx/toolchain-odbeta-lepus
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -255,10 +255,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=odbeta
|
./configure --platform=odbeta
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
mv PicoDrive.opk PicoDrive-odbeta-lepus-$ver.opk
|
mv PicoDrive.opk PicoDrive-odbeta-lepus-$ver.opk
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ODbeta lepus
|
name: ODbeta lepus
|
||||||
path: PicoDrive-odbeta-*.opk
|
path: PicoDrive-odbeta-*.opk
|
||||||
|
@ -267,7 +267,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/irixxxx/toolchain-odbeta-rs90
|
container: ghcr.io/irixxxx/toolchain-odbeta-rs90
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -275,10 +275,10 @@ jobs:
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=odbeta
|
./configure --platform=odbeta
|
||||||
make -j2
|
make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
mv PicoDrive.opk PicoDrive-odbeta-rg99-$ver.opk
|
mv PicoDrive.opk PicoDrive-odbeta-rg99-$ver.opk
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ODbeta rg99
|
name: ODbeta rg99
|
||||||
path: PicoDrive-odbeta-*.opk
|
path: PicoDrive-odbeta-*.opk
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue