Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubunto Flat/Snap Package Request #897

Open
wants to merge 3,644 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3644 commits
Select commit Hold shift + click to select a range
b847da5
Update kronos_fr.yts
BenjaminSiskoo Jan 1, 2024
26a45da
Do not report that a MPEG card is present since it is not working
Mar 22, 2024
4f9a4bb
Use height while saving - Fix #1534
May 14, 2024
523427a
gcc14: fix implicit function declaration
ToKe79 May 24, 2024
8b105cb
gcc14: fix implicit function declaration
ToKe79 May 24, 2024
66a74d0
gcc14: fix return mismatch
ToKe79 May 24, 2024
400670e
Add Wanpaku Safari + small fixes
BenjaminSiskoo Jul 3, 2024
b0a07b1
CS1 Dev cart nterface shall report the cartId
FCare Jul 29, 2024
1837142
on 0xFFFFF0 access, dev cart is also sending back its id. It should a…
FCare Jul 29, 2024
69e778e
Fix overaxes wrapping on controllers - Close #1548
Aug 21, 2024
1ec5dd0
Fix trigger buttons - Fix #1547
Aug 21, 2024
5d70322
Take care of adress overflow when accessing vdp1 ram - Fix #1549
Aug 23, 2024
3de0ef0
Take care of min and max hat on controler
Aug 23, 2024
60c0162
Use updated vdp2 color ram when resolving vdp1 color - Fix #695
Aug 26, 2024
b0819ab
Add some comments fopr future debug
Aug 27, 2024
c769c42
In case of single density output, we need to compute twice the number…
Aug 30, 2024
f728594
When deinterlacing odd shall be doubled on previous even line, and ev…
Aug 30, 2024
67744eb
Define interlace possible values
Sep 2, 2024
0860a06
Move double density in the global control
Sep 2, 2024
812264f
remove dead code
Sep 2, 2024
3f8466f
remove dead code
Sep 2, 2024
3927c2a
Clean code
Sep 2, 2024
6518395
Optimize double density rendering
Sep 2, 2024
291e12c
Remove dead code
Sep 2, 2024
60289a2
Fix dead or alive double interlace in original size
Sep 4, 2024
1b579cf
Take care to interlace format when upscaling
Sep 5, 2024
3a21c7c
Remove dead code
Sep 5, 2024
c7043b9
Fix window usage on double interlace
Sep 6, 2024
cc86f5b
Stop evaluating area as soon as a point is visible
Sep 6, 2024
2b99bd7
Fix upscaling and deinterlacing
Sep 6, 2024
00ec7ce
Use enum for stretch interface
Sep 6, 2024
c89dd81
Rename scaling profiles
Sep 7, 2024
48094ac
Fix bob deinterlacing
Sep 8, 2024
7c229fb
Fix scanline
Sep 8, 2024
28b35b0
Upscale resolution shall be seen as a minimal resolution to achieve
Sep 8, 2024
99b7b52
REmove log
Sep 8, 2024
c33402b
Change enum names to comply with windows
Sep 8, 2024
6056636
USe the maximum workgroup size based on HW capabilities
Sep 8, 2024
72931bf
Fix DrawMapPerLine - Fix astra superstar
Sep 10, 2024
963861c
Remove useless code
Sep 10, 2024
7d68b6c
Fix typo - Fiw crash on astra
Sep 11, 2024
9ddb5cb
Extend lineinfo to second field
Sep 11, 2024
c3f69d7
Rationalize upscale options
Sep 12, 2024
fccaec6
Fix scale on integer size and simplify OSSC bob
Sep 12, 2024
3087d15
Fix translation
Sep 12, 2024
d6f54a9
Rename emblishments
Sep 12, 2024
64a64dc
Scanline shall be always displayed when selected
Sep 12, 2024
9c0c592
formatting code
Sep 12, 2024
c05be95
On scanline, show the last drawn field
Sep 13, 2024
356932f
Rework integer scaling option
Sep 13, 2024
a551916
Add a special case for left column - Fix line appearing on left in so…
Sep 13, 2024
387c842
Fix ratio and upscale limts for all modes
Sep 13, 2024
eb059d9
Remove trace
Sep 14, 2024
86be24e
Scale limit shall not zero
Sep 14, 2024
406ad4d
Fix reference pixel aspect ratio for NTSC
Sep 15, 2024
9594b83
Enforce the variadic macro support. Improve compilation code detection
Sep 15, 2024
cb09336
Fix sound buf length on libretro
Sep 16, 2024
6a6e04e
Only evaluate variables if one is reported to have changed
Sep 16, 2024
23bf796
Update libretro sound interface
Sep 16, 2024
9796daa
Ensure computation evaluation with brackets
Sep 19, 2024
9bc596a
Fix interlace
Sep 20, 2024
e466aa4
Limit workgroup size. CAlculation is a bad idea. Workgroup size shall…
Sep 21, 2024
986e6ef
Do not modify the cellw and cellh on RBG draw - it is not required si…
Sep 27, 2024
facf927
Fix aspect ratios
Sep 28, 2024
84f3cdb
Original screen ratio depends CLK settings
Sep 28, 2024
8387259
2.62 release
Sep 29, 2024
95abe21
Fix FB access for 8 bits
Sep 29, 2024
4bd63ae
Remove dead code
Sep 29, 2024
e43be0b
Remove useless code
Sep 30, 2024
a6ceb0e
Fiw write to FB in 8 bits - Fixes #1350
Sep 30, 2024
96ba325
Put a limit on FB access for the moment. It has to be removed in the …
Sep 30, 2024
40e798d
RGB access can not be statically calculated when RMP mode is 2 or 3 -…
Sep 30, 2024
380da95
Use two dedicated framebuffer memory access set of functions. One for…
Oct 3, 2024
1844f3c
Fix long read 16bits framebuffer access - Fix After Burner 2 start menu
Oct 5, 2024
e75d525
Fix github actions for windows
Oct 14, 2024
03a2731
Upload resulting artifact on github action
Oct 14, 2024
3316e0e
Fix Cpack installer generation on CI
Oct 15, 2024
70c59dd
Add more generated files to .gitignore
pstef Oct 22, 2024
954325e
libretro-common: sync with upstream cdrom/
pstef Oct 22, 2024
53656a9
Remove erroneous free() call in zlib_codec_init()
invertego May 2, 2022
7f4f60a
Respect canonical GNUMake variables CFLAGS and CXXFLAGS
pstef Oct 22, 2024
7053d62
This assignment was meant to be a comparison
pstef Oct 23, 2024
432beeb
Store the result of fgetc call in an int
pstef Oct 23, 2024
df2cdbd
Fix precedence in a conditional
pstef Oct 23, 2024
b6511fc
De-duplicate 'const' declaration specifier
pstef Oct 23, 2024
7149a2a
Reduce indentation
pstef Oct 23, 2024
1696a59
Cover all control paths explicitly
pstef Oct 23, 2024
99f694b
Remove extraneous parentheses
pstef Oct 23, 2024
60df15a
Remove conflicting declaration
pstef Oct 23, 2024
3cc4fd3
Change return type of Vdp1EraseWrite to void
pstef Oct 23, 2024
4f655a6
Move workflow on main branch
Oct 25, 2024
b96ae46
Fix Linux worker for .deb
Oct 25, 2024
46e687c
Remove useless worker
Oct 25, 2024
1d5af2b
Bilinear or bicubic is a non sense in pixel art. Better to use antial…
Oct 11, 2024
8361503
Fix libretro port
Oct 15, 2024
42e8f21
Some cleanup
Nov 5, 2024
10a371a
Use literal renderings of main titles for All Japan Pro-Wrestling gam…
BenjaminSiskoo Nov 16, 2024
dedd8fc
Move to one command drawn per vdp1 command - END code not working yet
Nov 6, 2024
75e716e
Support End code
Nov 6, 2024
05ad83c
Start VDP1 pipeline inconditionnaly
Nov 6, 2024
0d59713
Do not use a fence sync. A simple barrier is enough
Nov 6, 2024
71899c8
Fix MSB usage
Nov 7, 2024
a5d4716
Fix mesh improved color
Nov 7, 2024
afb1cee
Revert "Do not use a fence sync. A simple barrier is enough"
FCare Nov 7, 2024
1712cee
Do not use position compensation on y for interlaced pictures
Nov 8, 2024
0d6c551
Remove unused fields
Nov 9, 2024
e57936a
Reduce size of vdp1cmd_struct size - Reduce required GPU bandwidth
Nov 9, 2024
7df83a8
Color calculation is only valid on 16 bits framebuffer - Fix true pin…
Nov 9, 2024
5863776
Rationalise upscale parameter - USe 1x, 2x and 4x only
Nov 9, 2024
5e723aa
fix typo
Nov 9, 2024
856be63
Fix scaled sprite computation
Nov 9, 2024
9021a38
USe a more precise pipeline for SD
Nov 12, 2024
d54dd5f
Add missing file
Nov 12, 2024
80e0ecf
Avoid race between emulation and openTray. It should avoid deadlock w…
Nov 12, 2024
7b2cf2d
This is not needed for SD pipeline
Nov 12, 2024
c7d1387
Fix improved mesh under transparent pixel
Nov 12, 2024
38f4ec2
Do not systematically reinit the openGL program if not needed
Nov 12, 2024
344b4a9
Do not start emulation until full file is loaded
Nov 12, 2024
0d35f6c
If cancel is pressed, do not setup the filename of the game. Avoir ab…
Nov 12, 2024
811e961
Fix reload of disc during pause
Nov 12, 2024
af03b15
This code was only for the upscale
Nov 12, 2024
7f88bed
Improve performance of SD pipeline
Nov 13, 2024
2ef85cb
Move the updateView call directly in the GL class
Nov 13, 2024
d5c74ea
Simplify toolbar/menubar handling. Window mode, bar are always displa…
Nov 13, 2024
09067da
Wait for GL to be initialized before switching to fullscreen
Nov 13, 2024
d1e5dc8
Revert "Do not use position compensation on y for interlaced pictures"
Nov 13, 2024
2b6518e
Revert "Bilinear or bicubic is a non sense in pixel art. Better to us…
Nov 13, 2024
aed6c21
Do not unmute SCSP at each emulation loop
Nov 13, 2024
70f2d99
Try to fix Virtual Open Tennis - Ref #1573
Nov 13, 2024
52f3664
Revert "Try to fix Virtual Open Tennis - Ref #1573"
Nov 14, 2024
0cf0da8
Do not try to optimize calculation for vdp2colx since offset color is…
Nov 14, 2024
757f7d8
reordering text for readability
Nov 14, 2024
d46ae21
Optimization - no need to fully evaluate a while(1), we can abort the…
Nov 14, 2024
3343709
Reapply "Try to fix Virtual Open Tennis - Ref #1573"
Nov 14, 2024
25146e1
More cases to check cpu bus concurrency
Nov 14, 2024
243244e
Rework color ram per line mechanism
Nov 15, 2024
7b64197
Only write 8 bits in FB when FB is 8 bits
Nov 15, 2024
6502b64
Fix typo
Nov 15, 2024
a6ea0ee
Avoid memory overflow
Nov 15, 2024
c23ff45
Some rework of QT event handling
Nov 17, 2024
790e055
Move savestate out of emulation loop
Nov 17, 2024
607c96f
move load state out of emulation loop
Nov 17, 2024
0cbe6a2
Fix open/Close real CDROM drive
Nov 17, 2024
3f58006
Reenable the ISO drop
Nov 17, 2024
e2f3f27
For WIP, let's have the last commit ID in the title - It helps to ref…
Nov 18, 2024
faa1c86
Fix worker
Nov 18, 2024
717e754
No need for two back color texture
Nov 18, 2024
b73ef51
Use back color for border
Nov 18, 2024
65f80e2
Implement Border support
Nov 18, 2024
ce270e6
Do not use DISP bit - Fix borders always based on back screen
Nov 19, 2024
e100d7d
More meaningfull function name
Nov 19, 2024
36ce111
Remove workaround - Back screen is always computed
Nov 19, 2024
36d37a8
Try to setup a better blocking function
Nov 20, 2024
c5e6a24
Fix compilation warning
Nov 20, 2024
cf504f7
Fix vdp2 viewer list on next action
Nov 20, 2024
4f49f9b
Fix windows compilation
Nov 20, 2024
f692be7
Execute a last erase when we switch from onecycle mode to manual mode…
Nov 20, 2024
f57d24e
Show game filename in the application title bar
Nov 21, 2024
52e450c
Do not start the emulation when a setting has changed or when a non e…
Nov 21, 2024
3055553
Fix breakpoint handling - more user friendly
Nov 21, 2024
ed81d87
Fix backupManager launch
Nov 21, 2024
b389be0
Block VDP1 when SCU DMA is accessing VDP1RAM - Fixes #1506
Nov 21, 2024
4e495b0
Fix UIHexInput
Nov 21, 2024
9657cdd
Continue is done only when IREG CONTINUE is 1. See Table 3.2 of SMPC doc
Nov 21, 2024
367d4e3
Fix blocking VRAM conditions
Nov 22, 2024
258b04c
Improve STV game handling and switching. No need to automatically reset
Nov 22, 2024
7a8a67f
Do not change CDCore if it is the same
Nov 22, 2024
b5a88f8
Fix memory free on ZIP Iso
Nov 22, 2024
69c4ca5
Restore last cartridge when going back from a STV game
Nov 22, 2024
3cbb3e9
Reset only if we move to STV
Nov 22, 2024
df329b4
Do not stay rotated on non STV games
Nov 22, 2024
d14f5ea
Fix STV game listing handling
Nov 22, 2024
4d2e2f6
More robust STVInit
Nov 22, 2024
0602fcf
isSTV is nont set at very first start until a game is launched
Nov 22, 2024
d656be6
Fix dynamic reload of games
Nov 22, 2024
ada835f
Fix STV game parsing - Need to update all CRC now - gamelistv2.save i…
Nov 23, 2024
ea4336a
Handle windows case
Nov 23, 2024
f658cb7
Must escape
Nov 23, 2024
c1a8d66
Fix get_basename on windows
Nov 23, 2024
4a5bfc3
Import some CRC for STV
Nov 23, 2024
e445fed
More STV CRC
Nov 23, 2024
414211d
More STV CRC
Nov 23, 2024
afa2efe
Last STV CRC
Nov 23, 2024
9a85b8a
A smae zip file can be used for multiple games - Exemple final fight
Nov 23, 2024
1c264e7
Do not reset STV game when opening settings and changing nothing
Nov 23, 2024
070363f
Init Tatacot
BenjaminSiskoo Nov 23, 2024
1443ab0
Add STv game - Fantasy Zone
BenjaminSiskoo Nov 24, 2024
6e83056
Add STV CRC32 - Name Club Disney
BenjaminSiskoo Nov 24, 2024
f50d4d0
Add STV CRC32 - Print Club Yoshimoto (J 970208 V1.000)
BenjaminSiskoo Nov 24, 2024
0449ad0
Add STV CRC32 - Yatterman Plus (J 981006 V1.000)
BenjaminSiskoo Nov 24, 2024
c387a9c
revert the comment
BenjaminSiskoo Nov 24, 2024
845571e
STV game : Othellos need a 2p option to be playable
BenjaminSiskoo Nov 24, 2024
49609ac
STV game : Suiko Enbu need a 2p option to be playable
BenjaminSiskoo Nov 24, 2024
9fe6fe9
STV game : Winter Heat need a 2p option to be playable
BenjaminSiskoo Nov 24, 2024
89774ec
STVMP --> Pro Kiwame and Danchi. Danchi boot now
BenjaminSiskoo Nov 24, 2024
90bae3a
Fix reload of STV game
Nov 24, 2024
551bef2
Fix mode switch
Nov 24, 2024
216f627
Do not reset saturn mode when changin saturn type cartridge
Nov 24, 2024
dd96ba3
Add sem wait functions which does not block if semaphore is blocked
Nov 24, 2024
5a661fe
On refreshinit, avoid to be blocked due to semaphore
Nov 24, 2024
77ce065
Effectively switch STV game
Nov 24, 2024
60f0632
Be sure the game is paused at the end of a frame when reseting
Nov 24, 2024
9506b19
STV game - Sport Fishing need to have 1P enabled to boot
BenjaminSiskoo Nov 24, 2024
9aabfb3
UpBetter with a comma
BenjaminSiskoo Nov 24, 2024
808b054
REmove unwanted printf
Nov 24, 2024
3e09c3f
Use $ as separator - Fix name parsing
Nov 24, 2024
5e5b1da
Fix LOGSTV usage
Nov 24, 2024
26ffb68
Different games are using files with same CRC - Take care of the name
Nov 24, 2024
c2a57ae
Bios also can be on subdirectory
Nov 24, 2024
a48cb7c
Fix compilation on windows
Nov 24, 2024
af5bb69
Do not init the STV in the main process of the creation. Fix the endl…
Nov 24, 2024
c203588
Avoid to send the log to the log window if it does not exist
Nov 24, 2024
3e44088
On windows, path are separated by \ but on zip report, they are separ…
Nov 24, 2024
15ab652
Puzzle & Action Bomuleul need 2p option
BenjaminSiskoo Nov 24, 2024
0d0de77
For STV ask the path to the mame Romset 0.269
Nov 24, 2024
83d4104
VFremix need 2P system
Nov 24, 2024
256d0a6
Add a quick action to get to cartridge setup tab
Nov 25, 2024
db067c5
Interrupt handliing need some cycles between two interrupts - Fix Meg…
Nov 25, 2024
36d9fa1
Add missing file
Nov 25, 2024
601f6f4
Does not synchronously launch UIDebugSH2 - Fix #1531
Nov 25, 2024
f0a8b61
Even if breakpoint is set for a core, it impact the other core. So as…
Nov 25, 2024
0abd3e9
Revert "For STV ask the path to the mame Romset 0.269"
Nov 25, 2024
9dfb4f1
Fix cartridge layout
Nov 25, 2024
44d3876
Setup CTRL+A for STV
Nov 25, 2024
4b81da4
Breakpoint shall never stop the emulation during an instruction - eit…
Nov 26, 2024
b144cea
Show more details in the breakpoint popup. Showing PC adress of event…
Nov 27, 2024
7ad8049
From a core perspective, reseting a SH2 core has no impact - Avoid de…
Nov 28, 2024
bd28016
Fix code breakpoints
Nov 28, 2024
430930f
Fix code brekpoint message - Fix step out function
Nov 28, 2024
7e6043d
Fix step in debug
Nov 28, 2024
2f5f51e
Fix Step in SH2 code
Nov 28, 2024
789ab71
I prefer with parenthesis
Nov 28, 2024
566c9d0
Stress Buster cabinet is for 2 player
Nov 28, 2024
9d6e45e
Align some delay and cycles value to spec
Dec 1, 2024
63b03a9
3dd the intrinsec cost of cache maintenance operations
Dec 1, 2024
ad67637
Whatever happen, if a memory location has changed, it can impact both…
Dec 1, 2024
8bc434f
Using a theorical memeroy model, on a 16 bits bus, we can expect long…
Dec 1, 2024
dcf2170
Bus is 32 bits and some memory, like HWRAm are 32 bits, so assumption…
Dec 1, 2024
8407d66
Low Ram has also a column/row mechanism - Impact on row change is a b…
Dec 1, 2024
837973f
Some delay on VDP1 memory access
Dec 1, 2024
efe645d
Move to 2.7.0
Dec 22, 2024
dcaf739
Setup the tl after a potential program change. Fix batsugun
Dec 23, 2024
c88d79a
Revert "3dd the intrinsec cost of cache maintenance operations"
Dec 23, 2024
f09d5ef
A line cache takes 2 cycles, a full cache purge takes one cycle
Dec 23, 2024
6435220
Avoid compilation warning
Dec 23, 2024
aca9865
Division can consume up to 39 cycles
Dec 23, 2024
6750417
Maru-Chan de Goo! (J 971216 V1.000) need 2P option
BenjaminSiskoo Dec 29, 2024
995a582
Update libretro.c
barbudreadmon Jan 5, 2025
094aee4
Update libretro_core_options.h
barbudreadmon Jan 5, 2025
58352d6
Silence "implicit function declaration" warnings/errors
pstef Dec 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

What's the full name of the game (including region) ?

What's your frontend ? (standalone, libretro, ...) ?

What's your OS ? (windows, linux, OSX, ...) ?

What's your hardware ? (CPU, GPU, ...) ?

What's the storage type of the game (official cd, burned cd or cd image) ?

If applicable, what's the format of your cd image ? (cue/bin, ccd/img, iso, chd, ...)

Are you using any setting different from default ? If so, precise

Did this game work previously ? Do you remember when ? Is it happening with other games ?

If applicable, provide error messages, logs, screenshots, or whatever additional information that could help debugging this
60 changes: 60 additions & 0 deletions .github/workflows/cmake.linux.ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CMake Linux Ubuntu

on:
push:
branches: [ kronos-cmake_ci ]
pull_request:
branches: [ kronos-cmake_ci ]
workflow_dispatch:

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
name: Releasing for Ubuntu
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- name: Preparing environment
run: |
echo "Installing required packages."
sudo apt-get update
sudo apt-get install -y cmake qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtmultimedia5-dev libqt5opengl5-dev libsdl2-dev
echo "Cloning sources"
- name: Checkout Code
uses: actions/checkout@v4

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: |
cmake -S ${{github.workspace}}/yabause -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
# Build your program with the given configuration
shell: bash
run: |
echo "Compiling"
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
cd ${{github.workspace}}/build
cpack -G DEB
NAME=$(ls kronos*.deb)
echo "ReleaseFile=${{github.workspace}}/build/$NAME" >> "$GITHUB_ENV"
echo "ArtifactName=$NAME" >> "$GITHUB_ENV"
- name: Binary upload
uses: actions/upload-artifact@v4
with:
name: ${{env.ArtifactName}}
path: ${{env.ReleaseFile}}
#- name: Test
#working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
#run: ctest -C ${{env.BUILD_TYPE}}

74 changes: 74 additions & 0 deletions .github/workflows/cmake.windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Generate Windows Installer

on:
push:
branches: [ kronos-cmake_ci ]
pull_request:
branches: [ kronos-cmake_ci ]
workflow_dispatch:

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
modules: 'all'
- name: Download SDL2
shell: pwsh
run: |
Invoke-WebRequest -OutFile SDL2.zip -Uri https://github.com/libsdl-org/SDL/releases/download/release-2.30.8/SDL2-devel-2.30.8-VC.zip
- name: Install SDL2
shell: pwsh
run: |
Expand-Archive -Force SDL2.zip .\
mv SDL2-2.30.8 ${{github.workspace}}/SDL2
rm SDL2.zip
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
env:
sdl2lib_DIR: ${{github.workspace}}\SDL2
sdl2_DIR: ${{github.workspace}}\SDL2\cmake
run: |
cmake -S ${{github.workspace}}/yabause -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DYAB_IS_WIP=ON

- name: Build
# Build your program with the given configuration
run: |
echo "Compiling"
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target package

#- name: Test
#working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
#run: ctest -C ${{env.BUILD_TYPE}}
- name: Prepare package
id: rename
shell: bash
run: |
SHORT_SHA=$(echo ${{ github.sha }} | cut -c 1-7)
NAME=$(find build/ -maxdepth 1 -iname "kronos-*.exe")
mv $NAME kronos-win64-$SHORT_SHA.exe
echo "ReleaseFile=kronos-win64-$SHORT_SHA.exe" >> "$GITHUB_ENV"
echo "ArtifactName=kronos-win64-$SHORT_SHA" >> "$GITHUB_ENV"
- name: Binary upload
uses: actions/upload-artifact@v4
with:
name: ${{env.ArtifactName}}
path: ${{env.ReleaseFile}}

53 changes: 53 additions & 0 deletions .github/workflows/release_on_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Kronos Automatic releases on tag
on:
push:
tags:
- '**_official_release'
jobs:
ubuntu_release_job:
name: Releasing for Ubuntu
runs-on: ubuntu-20.04
steps:
- name: Preparing environment
run: |
echo "Installing required packages."
sudo apt-get update
sudo apt-get install -y cmake qt5-default qtmultimedia5-dev libqt5opengl5-dev libsdl2-dev
echo "Cloning sources"
- name: Checkout Code
uses: actions/checkout@v2
- name: Compiling
run: |
echo "Preparing compilation"
echo "Configuring"
cmake yabause
echo "Compiling"
make
echo "Compilation done"
- name: Installing
run: |
echo "Installing"
make DESTDIR=install install
cd install/
zip -r ../kronos_ubuntu.zip .
cd ..
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./kronos_ubuntu.zip
asset_name: Kronos binaries for Ubuntu
asset_content_type: application/zip
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
yabause/src/android/res/values/security.xml
yabause/src/zlib/zconf.h
/.gradle/
/local.properties
.DS_Store
*.iml
build/
/*build/
**/*build/*
*.a
*.so
*.o
*.swp
yabause/.vs/slnx.sqlite
yabause/.vs/yabause/v15/Browse.VC.db
yabause/.vs/yabause/v15/Browse.VC.opendb
yabause/.vs/yabause/v15/ipch/AutoPCH/ac374fd6e6518240/YGLES.ipch
yabause/.vs/slnx.sqlite-journal
yabause/.vs/ProjectSettings.json
*.ipch
yabause/.vs/yabause/v15/.suo
*.cache
*.cache
yabause/src/libchdr/deps/lzma-16.04/CS/7zip/Compress/LzmaAlone/obj/Debug/LzmaAlone.csprojAssemblyReference.cache
yabause/src/libchdr/deps/lzma-16.04/CS/7zip/Compress/LzmaAlone/obj/Debug/LzmaAlone.csproj.CoreCompileInputs.cache
yabause/src/libchdr/deps/lzma-16.04/CS/7zip/Compress/LzmaAlone/obj/Release/LzmaAlone.csproj.CoreCompileInputs.cache
*.cache
yabause/src/perfetto
.vs/Kronos/v15/.suo
*.db
*.opendb
*.json
*.sqlite
yabause/src/core/m68k/musashi/m68kmake
yabause/src/core/m68k/musashi/m68kopac.c
yabause/src/core/m68k/musashi/m68kopdm.c
yabause/src/core/m68k/musashi/m68kopnz.c
yabause/src/core/m68k/musashi/m68kops.c
yabause/src/core/m68k/musashi/m68kops.h
Loading