mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 00:56:40 -04:00
PS3: Add working github actions workflow
This commit is contained in:
parent
a7488f2a0b
commit
521cc79dd0
4
.github/workflows/build_ds.yml
vendored
4
.github/workflows/build_ds.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
container:
|
||||
image: skylyrac/blocksds:dev-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile DS build
|
||||
id: compile
|
||||
run: |
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
# otherwise notify_failure doesn't work
|
||||
- name: Install curl when necessary
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
run: apt install curl
|
||||
run: apt-get -y install curl
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
|
2
.github/workflows/build_n64.yml
vendored
2
.github/workflows/build_n64.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
# otherwise notify_failure doesn't work
|
||||
- name: Install curl when necessary
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
run: apt install curl
|
||||
run: apt-get -y install curl
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
|
31
.github/workflows/build_ps3.yml
vendored
31
.github/workflows/build_ps3.yml
vendored
@ -10,33 +10,38 @@ jobs:
|
||||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: akusiroyo/ps3sdk:latest
|
||||
image: ghcr.io/classicube/minimal-psl1ght:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile PS3 build
|
||||
id: compile
|
||||
run: |
|
||||
pacman -S make --noconfirm
|
||||
export PSL1GHT=/usr/local/ps3dev
|
||||
export PS3DEV=/usr/local/ps3dev
|
||||
export PSL1GHT=/usr/local/ps3dev
|
||||
export PATH=$PATH:$PS3DEV/bin
|
||||
export PATH=$PATH:$PS3DEV/ppu/bin
|
||||
make ps3
|
||||
|
||||
|
||||
|
||||
# otherwise notify_failure doesn't work
|
||||
- name: Install curl when necessary
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
run: apt-get install -y curl
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile PS3 build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
SOURCE_FILE: 'ClassiCube-PS3.self'
|
||||
DEST_NAME: 'ClassiCube-PS3.self'
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
SOURCE_FILE: 'ClassiCube-ps3.pkg'
|
||||
DEST_NAME: 'ClassiCube-ps3.pkg'
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
SOURCE_FILE: 'ClassiCube-ps3.elf'
|
||||
DEST_NAME: 'ClassiCube-ps3.elf'
|
||||
SOURCE_FILE: 'ClassiCube-PS3.pkg'
|
||||
DEST_NAME: 'ClassiCube-PS3.pkg'
|
@ -49,9 +49,7 @@ void Platform_Log(const char* msg, int len) {
|
||||
}
|
||||
|
||||
TimeMS DateTime_CurrentUTC(void) {
|
||||
struct timeval cur;
|
||||
gettimeofday(&cur, NULL);
|
||||
return (cc_uint64)cur.tv_sec + UNIX_EPOCH_SECONDS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void DateTime_CurrentLocal(struct DateTime* t) {
|
||||
@ -176,10 +174,6 @@ void Thread_Run(void** handle, Thread_StartFunc func, int stackSize, const char*
|
||||
*handle = NULL;
|
||||
}
|
||||
|
||||
void Thread_Start2(void* handle, Thread_StartFunc func) {
|
||||
// TODO: actual multithreading ???
|
||||
}
|
||||
|
||||
void Thread_Detach(void* handle) {
|
||||
}
|
||||
|
||||
@ -269,10 +263,6 @@ void Platform_Init(void) {
|
||||
// TODO: Redesign Drawer2D to better handle this
|
||||
Options_SetBool(OPT_USE_CHAT_FONT, true);
|
||||
|
||||
//console_init();
|
||||
//console_set_render_mode(RENDER_AUTOMATIC);
|
||||
//console_set_debug(true);
|
||||
|
||||
dfs_init(DFS_DEFAULT_LOCATION);
|
||||
timer_init();
|
||||
rtc_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user