mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 13:35:11 +03:00
Updated workflows
This commit is contained in:
parent
70db8aef1f
commit
0bf06e720d
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@ -58,12 +58,19 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: starship.o2r
|
name: starship.o2r
|
||||||
path: ./build/x64/Release/starship.o2r
|
path: ./build/x64/Release
|
||||||
|
- name: Create Package
|
||||||
|
run: |
|
||||||
|
mkdir starship-release
|
||||||
|
mv build/x64/Release/Starship.exe starship-release/
|
||||||
|
mv build/x64/Release/starship.o2r starship-release/
|
||||||
|
mv config.json starship-release/
|
||||||
|
mv assets starship-release/
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: starship-windows
|
name: starship-windows
|
||||||
path: ./build/x64/Release
|
path: starship-release
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
needs: generate-port-o2r
|
needs: generate-port-o2r
|
||||||
@ -82,12 +89,14 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: starship.o2r
|
name: starship.o2r
|
||||||
path: build-cmake/starship.o2r
|
path: ./build-cmake
|
||||||
- name: Create Package
|
- name: Create Package
|
||||||
run: |
|
run: |
|
||||||
mkdir starship-release
|
mkdir starship-release
|
||||||
mv build-cmake/Starship starship-release/
|
mv build-cmake/Starship starship-release/
|
||||||
mv build-cmake/starship.o2r starship-release/
|
mv build-cmake/starship.o2r starship-release/
|
||||||
|
mv config.json starship-release/
|
||||||
|
mv assets starship-release/
|
||||||
- name: Publish packaged artifacts
|
- name: Publish packaged artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@ -127,7 +136,7 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: starship.o2r
|
name: starship.o2r
|
||||||
path: build-cmake/starship.o2r
|
path: ./build-cmake
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release
|
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release
|
||||||
@ -142,3 +151,5 @@ jobs:
|
|||||||
name: Starship-linux
|
name: Starship-linux
|
||||||
path: |
|
path: |
|
||||||
starship.appimage
|
starship.appimage
|
||||||
|
config.json
|
||||||
|
assets
|
@ -30,20 +30,18 @@ class GameEngine {
|
|||||||
std::shared_ptr<Ship::Context> context;
|
std::shared_ptr<Ship::Context> context;
|
||||||
|
|
||||||
GameEngine();
|
GameEngine();
|
||||||
|
void StartFrame() const;
|
||||||
static bool GenAssetFile();
|
static bool GenAssetFile();
|
||||||
static void Create();
|
static void Create();
|
||||||
void StartFrame() const;
|
|
||||||
static void HandleAudioThread();
|
static void HandleAudioThread();
|
||||||
static void ProcessAudioTask(s16* audio_buffer);
|
|
||||||
static void StartAudioFrame();
|
static void StartAudioFrame();
|
||||||
static void EndAudioFrame();
|
static void EndAudioFrame();
|
||||||
static void AudioInit();
|
static void AudioInit();
|
||||||
static void AudioExit();
|
static void AudioExit();
|
||||||
static void RunCommands(Gfx* Commands, const std::vector<std::unordered_map<Mtx*, MtxF>>& mtx_replacements);
|
static void RunCommands(Gfx* Commands, const std::vector<std::unordered_map<Mtx*, MtxF>>& mtx_replacements);
|
||||||
void ProcessFrame(void (*run_one_game_iter)()) const;
|
|
||||||
static void Destroy();
|
static void Destroy();
|
||||||
static void ProcessGfxCommands(Gfx* commands);
|
|
||||||
static uint32_t GetInterpolationFPS();
|
static uint32_t GetInterpolationFPS();
|
||||||
|
static void ProcessGfxCommands(Gfx* commands);
|
||||||
|
|
||||||
static int ShowYesNoBox(const char* title, const char* box);
|
static int ShowYesNoBox(const char* title, const char* box);
|
||||||
static void ShowMessage(const char* title, const char* message, SDL_MessageBoxFlags type = SDL_MESSAGEBOX_ERROR);
|
static void ShowMessage(const char* title, const char* message, SDL_MessageBoxFlags type = SDL_MESSAGEBOX_ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user