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

Merge Develop to master for 4.1.0 release #237

Merged
merged 348 commits into from
Aug 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
348 commits
Select commit Hold shift + click to select a range
e7f8241
Debug ubuntu
kobenairb Apr 14, 2023
6543efe
Debug ubuntu
kobenairb Apr 14, 2023
1f62cff
Debug ubuntu
kobenairb Apr 14, 2023
b48da51
Debug ubuntu
kobenairb Apr 14, 2023
0dc7e0f
Debug ubuntu
kobenairb Apr 14, 2023
a646b7a
Debug ubuntu
kobenairb Apr 14, 2023
10ad655
debug again
kobenairb Apr 14, 2023
e99aea5
debug again
kobenairb Apr 14, 2023
99e604c
Debug
kobenairb Apr 14, 2023
a9d8faf
Debug
kobenairb Apr 14, 2023
7fd3ded
Debug
kobenairb Apr 14, 2023
316545d
Debug
kobenairb Apr 14, 2023
5ceddc1
Debug
kobenairb Apr 14, 2023
dea48a1
Debug
kobenairb Apr 14, 2023
202eb53
Debug
kobenairb Apr 14, 2023
71f2a48
Debug
kobenairb Apr 14, 2023
8462528
Debug
kobenairb Apr 14, 2023
dd3929d
Debug
kobenairb Apr 14, 2023
4218c8b
debug
kobenairb Apr 14, 2023
1440f52
debug
kobenairb Apr 14, 2023
0b67dc5
debug
kobenairb Apr 14, 2023
76e40e1
Update Windows
kobenairb Apr 14, 2023
c4f1438
Update Windows
kobenairb Apr 14, 2023
230a92c
Update Windows
kobenairb Apr 14, 2023
d44710f
Update Windows
kobenairb Apr 14, 2023
2420ae6
Update MacOS
kobenairb Apr 14, 2023
970bad3
Update MacOS
kobenairb Apr 14, 2023
e8d7352
Update MacOS
kobenairb Apr 14, 2023
4f5a172
Update MacOS
kobenairb Apr 14, 2023
e224373
Debug MacOS
kobenairb Apr 15, 2023
4070ac3
Debug snesbrr
kobenairb Apr 15, 2023
cfa46c7
debug
kobenairb Apr 15, 2023
9ebca54
debug
kobenairb Apr 15, 2023
649bdd1
debug
kobenairb Apr 15, 2023
3a35f78
debug
kobenairb Apr 15, 2023
bee5d2c
debug
kobenairb Apr 15, 2023
d91ea6b
debug
kobenairb Apr 15, 2023
f11b559
debug
kobenairb Apr 15, 2023
38f1f20
debug
kobenairb Apr 15, 2023
d60e82e
debug
kobenairb Apr 15, 2023
27083e7
debug
kobenairb Apr 15, 2023
0d686a8
debug
kobenairb Apr 15, 2023
d593999
debug
kobenairb Apr 15, 2023
2ac2285
debug
kobenairb Apr 15, 2023
bfabcef
debug
kobenairb Apr 15, 2023
8eaa2d6
debug
kobenairb Apr 15, 2023
60e9f8f
debug
kobenairb Apr 15, 2023
8aa7030
Check OS
kobenairb Apr 15, 2023
4c7226f
Debug
kobenairb Apr 15, 2023
6c85197
debug
kobenairb Apr 15, 2023
5aed049
debug
kobenairb Apr 15, 2023
c86fba1
debug
kobenairb Apr 15, 2023
354643c
debug
kobenairb Apr 16, 2023
0131574
debug
kobenairb Apr 16, 2023
9e674a6
debug
kobenairb Apr 16, 2023
4d1fbda
debug
kobenairb Apr 16, 2023
02ccaca
debug
kobenairb Apr 16, 2023
8412b97
debug
kobenairb Apr 16, 2023
b6f7701
debug
kobenairb Apr 16, 2023
462d489
debug
kobenairb Apr 16, 2023
eeb473f
Refactor again
kobenairb Apr 16, 2023
a3456ec
Update 816-opt to use pcre instead of regex. Binary is static for win…
kobenairb Apr 16, 2023
cc51fd1
Fix wrong commands
kobenairb Apr 16, 2023
893f5d8
Remove useless call of clean for release, remove check for operating …
kobenairb Apr 16, 2023
e667bbf
Test release
kobenairb Apr 16, 2023
712755c
Add new branch for runners
kobenairb Apr 16, 2023
865a7b8
Add new branch for runners
kobenairb Apr 16, 2023
d3cc95f
Change default shell
kobenairb Apr 16, 2023
fc30cf5
Add zip for win
kobenairb Apr 16, 2023
821ba94
Add release for mac
kobenairb Apr 16, 2023
33b6504
Add release for mac
kobenairb Apr 16, 2023
c607b74
Check for release names
kobenairb Apr 16, 2023
cc7beb6
Add upload
kobenairb Apr 16, 2023
a7abe2b
Comment upload part for now
kobenairb Apr 16, 2023
d90512f
Fix missing make generator for msys
kobenairb Apr 17, 2023
3983461
debug cmake generator for win
kobenairb Apr 17, 2023
212bd5a
debug cmake generator for win
kobenairb Apr 17, 2023
6dfb998
debug cmake generator for win
kobenairb Apr 17, 2023
b7e67b4
debug cmake generator for win
kobenairb Apr 17, 2023
b7171c3
debug cmake generator for win
kobenairb Apr 17, 2023
687683c
debug cmake generator for win
kobenairb Apr 17, 2023
6e95267
debug cmake generator for win
kobenairb Apr 17, 2023
d2ee6a0
debug cmake generator for win
kobenairb Apr 17, 2023
2f657ec
debug cmake generator for win
kobenairb Apr 17, 2023
b1c8837
debug cmake generator for win
kobenairb Apr 17, 2023
fb4b52c
debug cmake generator for win
kobenairb Apr 17, 2023
cdc4e7e
debug cmake generator for win
kobenairb Apr 17, 2023
c6be1fc
debug cmake generator for win
kobenairb Apr 17, 2023
d8dd764
debug cmake generator for win
kobenairb Apr 17, 2023
77eefbc
debug cmake generator for win
kobenairb Apr 17, 2023
e9f33aa
debug cmake generator for win
kobenairb Apr 17, 2023
1ac4f63
debug cmake generator for win
kobenairb Apr 17, 2023
1dd06cf
Change ARCH, remove platform
kobenairb Apr 17, 2023
66992cf
Rollback snesbrr makefiles
kobenairb Apr 17, 2023
28fcebe
Update runner
kobenairb Apr 17, 2023
469a668
Update runner
kobenairb Apr 17, 2023
97b9dc8
snesbrr debug
kobenairb Apr 17, 2023
ccfc9d7
816-opt debug
kobenairb Apr 17, 2023
3d8c8ad
816-opt debug
kobenairb Apr 17, 2023
6da4451
816-opt debug
kobenairb Apr 17, 2023
880d270
816-opt debug
kobenairb Apr 17, 2023
d81c1f3
816-opt debug
kobenairb Apr 17, 2023
f4d366b
debug pcre for windows
kobenairb Apr 17, 2023
0024525
debug pcre for windows
kobenairb Apr 17, 2023
df69249
debug pcre for windows
kobenairb Apr 17, 2023
2dfb88b
debug pcre for windows
kobenairb Apr 17, 2023
9de11a7
debug pcre for windows
kobenairb Apr 17, 2023
5c932c4
debug pcre for windows
kobenairb Apr 17, 2023
8c5bb5d
debug pcre for windows
kobenairb Apr 17, 2023
67dd532
debug pcre for windows
kobenairb Apr 17, 2023
4752dd5
debug pcre for windows
kobenairb Apr 17, 2023
82ebb78
Update to test with posix
kobenairb Apr 17, 2023
859eb60
Test again
kobenairb Apr 17, 2023
10976c4
Add ldd check after build
kobenairb Apr 17, 2023
2709505
test again
kobenairb Apr 17, 2023
f401b16
Some fixes
kobenairb Apr 17, 2023
cf662b6
new changes
kobenairb Apr 17, 2023
a158809
new changes
kobenairb Apr 17, 2023
fca984f
new changes
kobenairb Apr 17, 2023
f63c8a7
new changes
kobenairb Apr 17, 2023
587d72c
new changes
kobenairb Apr 17, 2023
b40e682
new changes
kobenairb Apr 17, 2023
e515934
new changes
kobenairb Apr 17, 2023
dbeff44
Enable upload for tests
kobenairb Apr 17, 2023
fc87409
Enable upload for tests
kobenairb Apr 17, 2023
b720b40
Debug upload for tests
kobenairb Apr 17, 2023
8f0e0ac
upload for tests
kobenairb Apr 17, 2023
bec12ca
Merge pull request #200 from kobenairb/pvsneslib_runners
RetroAntho Apr 17, 2023
93dd198
updated special thanks
Apr 18, 2023
316dbc4
tcc submodule is now on 0.9.26 branch
Apr 18, 2023
5813a55
fix: change refresh status of objects (no need in refresh funcion)
alekmaul Apr 20, 2023
cafb12f
Switch tcc to f137615
kobenairb Apr 22, 2023
0389cdf
Fix wrong clean recipe for 816-opt
kobenairb Apr 22, 2023
b532352
Update Docker: Add make release, update doc and Dockerfiles...
kobenairb Apr 22, 2023
7f5e1db
Clean doxygen-gh-pages.yml and pvsneslib_build_package.yml
kobenairb Apr 22, 2023
806e012
Merge pull request #201 from kobenairb/upgrade
RetroAntho Apr 22, 2023
31e2ab7
Merge pull request #202 from alekmaul/upgrade
RetroAntho Apr 22, 2023
26422b1
initial commit of network lib
alekmaul Apr 23, 2023
2804da6
Merge branch 'develop' of https://github.com/alekmaul/pvsneslib into …
alekmaul Apr 23, 2023
d794667
add the possibility of being able to override SRC
kobenairb Apr 23, 2023
511eff4
Comment the make step, as it's already tested during the make release…
kobenairb Apr 23, 2023
e9d5b2d
Add a recipe to print the versions used to compile the project
kobenairb Apr 23, 2023
31887e0
Merge pull request #204 from kobenairb/new_features
RetroAntho Apr 23, 2023
83afef2
Extend the max line length from 1024 to 10240
kobenairb Apr 24, 2023
9b19a2f
Just change variable to macro for PVSNESLIB_HOME, unrelated to previo…
kobenairb Apr 24, 2023
e3da5b8
Merge pull request #205 from kobenairb/develop
alekmaul Apr 24, 2023
724b2f2
fix: change find_word type to size_t to be compare with string:npos
alekmaul Apr 25, 2023
f9fe77a
fix: add recommandation about C and SNES knowledges
alekmaul Apr 27, 2023
65e3821
fix: add recommandation about C and SNES knowledges
alekmaul Apr 27, 2023
c12251b
fix: add wiki links to help understand SNES
alekmaul Apr 28, 2023
0d5aab1
Fix dynamiv vs static lib
kobenairb Apr 30, 2023
5d22a47
Fix static for macos
kobenairb May 1, 2023
248299a
Merge pull request #207 from kobenairb/develop
RetroAntho May 1, 2023
be14295
Test cmake mingw
kobenairb May 1, 2023
85923fd
Switch windows toolchain to UCRT
kobenairb May 1, 2023
cd8c3f4
Switch windows toolchain to UCRT
kobenairb May 1, 2023
704f689
Switch windows toolchain to UCRT
kobenairb May 1, 2023
8f8ed66
Switch windows toolchain to UCRT
kobenairb May 2, 2023
e28968f
Switch windows toolchain to UCRT
kobenairb May 2, 2023
6bf24da
Switch windows toolchain to UCRT
kobenairb May 2, 2023
aaf50fe
Update docker files
kobenairb May 2, 2023
53cce7c
Trying mingw-w64-ucrt-x86_64-ntldd
kobenairb May 2, 2023
cfe07e6
Remove mingw-w64-ucrt-x86_64-ntldd
kobenairb May 2, 2023
86fd43b
Clean the Makefile
kobenairb May 2, 2023
7a4239f
Revert sztmpnam
kobenairb May 2, 2023
fd3106d
fix typo
kobenairb May 2, 2023
6368c00
Merge pull request #208 from kobenairb/develop
alekmaul May 2, 2023
21fecca
Add the missing change on tcc
kobenairb May 2, 2023
618989c
Merge pull request #209 from kobenairb/develop
RetroAntho May 2, 2023
cd20865
rollback to x86_64 in place of ucrt64
kobenairb May 2, 2023
9c97211
rollback to x86_64 in place of ucrt64
kobenairb May 2, 2023
f0db178
rollback to x86_64 in place of ucrt64
kobenairb May 2, 2023
4b5571a
rollback to x86_64 in place of ucrt64
kobenairb May 2, 2023
b4dcb51
Merge pull request #210 from kobenairb/develop
RetroAntho May 2, 2023
5ddf6b1
Rollback to ucrt64, activate -j options to compile the compilers fast…
kobenairb May 4, 2023
3051e48
Remove my custon branch
kobenairb May 4, 2023
f5d4d8f
Merge pull request #212 from kobenairb/develop
alekmaul May 4, 2023
b8b7e6e
feat: add slope tile definition
alekmaul May 5, 2023
d0844d1
feat: add mode7 scaling function
alekmaul May 5, 2023
443634f
added PVSNESLIB_DEBUG variable management
May 5, 2023
2815b0d
debug files are now ignored
May 5, 2023
905243e
added a paragraph on the debug part
May 5, 2023
ef4f41c
removed part on PVSNESLIB_DEBUG as it have been implemented
May 5, 2023
b2682bc
added configuration steps (required for Windows only) mentioned by @k…
May 5, 2023
94b4596
Fix issues when printing version, change smconv to use -v instead of …
kobenairb May 6, 2023
42190ef
Update snes examples Makefile according the smconv change
kobenairb May 6, 2023
63f916c
Update tcc compiler, fix u16 issue
kobenairb May 7, 2023
ea0ce94
Fix wrong binary for 816-opt when printing version
kobenairb May 7, 2023
4892b81
Merge pull request #214 from kobenairb/develop
RetroAntho May 7, 2023
384848f
tcc update, fix issue: missing vsnprintf
kobenairb May 9, 2023
950c3b5
fix: delete of debug files will now works on windows too
May 9, 2023
5d9af4b
Update doxygen documentation for libc_c.c
kobenairb May 11, 2023
112cf0a
Update pvsneslib.dox to doxygen 1.9.6
kobenairb May 11, 2023
a41772d
fix: remove .sym file when running wlalink
alekmaul May 11, 2023
19acca4
https://github.com/alekmaul/pvsneslib/issues/215
alekmaul May 11, 2023
ff21ade
fix: change way to compute current sprites on screen, get correct 16p…
alekmaul May 11, 2023
62bcd55
Merge branch 'alekmaul:develop' into develop
kobenairb May 11, 2023
832f54d
Update tcc, fix issue with casting
kobenairb May 12, 2023
8ba9f57
Merge pull request #216 from kobenairb/develop
alekmaul May 12, 2023
9d3dbb4
Change doxygen package on windows, now it's mingw-w64-ucrt-x86_64-dox…
kobenairb May 12, 2023
21f3560
Update tcc on last commit
kobenairb May 12, 2023
a9211bd
Fix missing function in tccgen.c
kobenairb May 12, 2023
ae0315c
Merge pull request #217 from kobenairb/develop
alekmaul May 12, 2023
364e21b
improved cleanDebug rule
May 15, 2023
b2f8765
removed fetch-depth parameter when cloning the repo to go quicker (ge…
May 15, 2023
d9ba1c8
fix:clean up code and variable name to avoid confusion with mode7 var…
alekmaul May 21, 2023
c765aa5
Update tcc version, update the Makefile for compilers
kobenairb May 21, 2023
b5dff11
Merge pull request #218 from kobenairb/develop
RetroAntho May 21, 2023
79a8cf7
added rule to update wla easily
Jul 16, 2023
85beaf6
updated wla to the last version
Jul 16, 2023
0a5705a
added -c option to link the files : it will avoid regression while we…
Jul 16, 2023
c414bcd
added smconv infos
Jul 16, 2023
8595943
Fix issue 224.
daniel-starke Jul 27, 2023
9ea1664
Adding FreeBSD to operating system list
darkain Aug 6, 2023
bcfab3f
Merge pull request #229 from darkain/develop
RetroAntho Aug 6, 2023
e14ab8f
Merge pull request #225 from daniel-starke/issue-224
RetroAntho Aug 7, 2023
d64664e
Remove useless code
kobenairb Aug 11, 2023
c965968
Merge branch 'alekmaul:develop' into develop
kobenairb Aug 11, 2023
2e6e267
Merge pull request #231 from kobenairb/develop
RetroAntho Aug 11, 2023
5d90f0e
feat: add fading example
alekmaul Aug 13, 2023
4e4999a
feat: add setFadeEffectEx function and clean code (no more wait_nmi)
alekmaul Aug 13, 2023
68e92ca
feat: add setFadeEffectEx function and clean code (no more wait_nmi)
alekmaul Aug 13, 2023
371f4c8
fix: void word expected on one function
alekmaul Aug 13, 2023
230ed2b
issue with submodule, removed temporarly tcc
Aug 14, 2023
4cd7d12
submodule cleaning...
Aug 14, 2023
969af45
added tcc as submodule
Aug 14, 2023
f50f66b
added tcc submodule
Aug 14, 2023
08b10a5
added rule to update easily submodules
Aug 14, 2023
1cd51fc
fix tcc directory name
Aug 14, 2023
9ca41ad
feat: The "Made with PVSnesLib" logo screen for PVSnesLib games
malayli Aug 16, 2023
0260c5d
Merge pull request #232 from malayli/feat/snes-logo-pvsneslib
RetroAntho Aug 16, 2023
f663b53
improve: use framesCounter instead of logoTimer that has same role
malayli Aug 16, 2023
50902df
Merge pull request #233 from malayli/improve/pvsneslib-logo-use-frame…
RetroAntho Aug 16, 2023
5106efa
fix: remove useless files
alekmaul Aug 17, 2023
f197347
fix: x is now in correct bank for dma transfert
alekmaul Aug 17, 2023
d8e2aa4
fix: remove oamnumbercurrent, it does not work to refresh sprites
alekmaul Aug 17, 2023
0d8e536
fix: change version to 4.1
alekmaul Aug 18, 2023
2a2fd01
feat: add some links and update paragraph
alekmaul Aug 19, 2023
47f28a0
fix: go to last main commit
alekmaul Aug 19, 2023
7f987ed
feat: change everything with new msys2 tool for compilation
alekmaul Aug 19, 2023
77a3a79
feat: adapt to msys2 and last version toolchain
alekmaul Aug 19, 2023
15a0136
fix: change msys to msys2 ucrt64
alekmaul Aug 19, 2023
85d5e6a
Fixed typos
polluks Aug 19, 2023
9fc581d
Merge pull request #236 from polluks/develop
RetroAntho Aug 19, 2023
b9db8f2
fix: some typo
alekmaul Aug 19, 2023
5633a25
fix: removed spcLoad call which are not needed (thank you BlueCop)
Aug 19, 2023
2887a27
fix: go to last main commit
alekmaul Aug 20, 2023
c48a802
fix: change some sentences to be clear about knowledge with using pvs…
alekmaul Aug 20, 2023
a576c06
fix: change version and changelog
alekmaul Aug 20, 2023
f08e587
fix: change some spaces and sentences
alekmaul Aug 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/doxygen-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Nom de notre workflow
name: PVSNESLIB Build Deploy Documentation
name: Publish Doxygen documentation

# Événements sur lesquels il doit être déclenché
on:
Expand All @@ -25,27 +25,26 @@ jobs:
uses: actions/checkout@v3
with:
ref: develop
fetch-depth: 0
persist-credentials: false

# 2. Partie spécifique à Sphinx (installation des
# dépendances et génération de la doc)
# 2. installation des dépendances et génération de la doc

- name: Install Doxygen
run: |
sudo apt-get install doxygen -y
shell: bash

- name: "Build Doxygen Doc"
run: |
cd pvsneslib
PVSDOCSDIR="docs" PVSVERSION="4.0.2" doxygen docs/pvsneslib.dox
export PVSNESLIB_HOME=`pwd`
make docs
shell: bash

# 3. Déploiement sur les Github Pages

- name: "Deploy Github Pages"
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages # <- Branche sur laquelle seront commités les fichiers
FOLDER: pvsneslib/docs/html/ # <- Dossier contenant notre documentation générée
branch: gh-pages # <- Branche sur laquelle seront commités les fichiers
folder: pvsneslib/docs/html/ # <- Dossier contenant notre documentation générée
209 changes: 103 additions & 106 deletions .github/workflows/pvsneslib_build_package.yml
Original file line number Diff line number Diff line change
@@ -1,135 +1,132 @@
name: PVSNESLIB Build and Package
name: PVSNESLIB Build & Release

# ------------------------------------ #
# Events to trigger the action #
# ------------------------------------ #
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Triggers the workflow on push or pull request events but only for the develop branch
# push:
# branches: [ develop ]

push:
branches:
- "develop"

# ------------------------------------ #
# Set O.S matrix #
# ------------------------------------ #
jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
include:
- os: ubuntu-20.04
name: Linux-x64
- os: windows-2019
name: Windows-x32
# - os: macos-11
# name: MacOS-x64
- os: ubuntu-latest
name: linux
- os: windows-latest
name: windows
- os: macos-latest
name: darwin

steps:

# ==== OS Specific Dependencies ====
- name: Install dependencies
if: matrix.name == 'Linux-x64'
# ------------------------------------ #
# Install dependencies #
# ------------------------------------ #
- name: Install dependencies for Linux
if: matrix.name == 'linux'
run: |
sudo apt-get install gcc-multilib

- name: Windows Depends MSYS2/MinGW32
if: matrix.name == 'Windows-x32'
sudo apt update -y
sudo apt-get install -y build-essential \
gcc-12 \
cmake \
make \
git \
doxygen \
texi2html \
texlive-latex-base \
texlive-latex-recommended \
texlive-latex-extra
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 90
- name: Install dependencies for Windows
if: matrix.name == 'windows'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
path-type: minimal #strict
release: false
update: false
update: true
msystem: UCRT64
install: >-
mingw-w64-ucrt-x86_64-toolchain
mingw-w64-ucrt-x86_64-cmake
mingw-w64-ucrt-x86_64-doxygen
mingw-w64-ucrt-x86_64-pcre2
base-devel
mingw-w64-i686-toolchain
git
zip
- name: Install dependencies for MacOS
if: matrix.name == 'darwin'
run: |
brew update
brew install doxygen
brew install gnu-sed
brew install texi2html
brew install texlive
sudo ln -s /usr/local/bin/gcc-12 /usr/local/bin/gcc
sudo ln -s /usr/local/bin/g++-12 /usr/local/bin/g++

# ==== Build Steps ====
# ------------------------------------ #
# Checkout the project #
# ------------------------------------ #
- name: Check out PVSNESLIB
uses: actions/checkout@v3
with:
ref: develop
path: pvsneslib
fetch-depth: 0
submodules: true
ref: ${{ github.head_ref }}
submodules: recursive
persist-credentials: false

# ==== Pre-Build: Set environment vars ====
# Needs to be in a separate step than build so that setting the environment var takes effect
#
- name: Pre-Build Linux/MacOS
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-x64')
shell: bash
run: |
echo "BUILD_PACKAGE_FILENAME=pvsneslib-${{ matrix.name }}.tar.gz" >> $GITHUB_ENV

- name: Pre-Build Windows
if: (matrix.name == 'Windows-x64') || (matrix.name == 'Windows-x32')
shell: bash
# ------------------------------------ #
# Compiling sources and create release #
# ------------------------------------ #
- name: Build & Release PVSNESLIB for Linux
if: (matrix.name == 'linux')
run: |
echo "BUILD_PACKAGE_FILENAME=pvsneslib-${{ matrix.name }}.zip" >> $GITHUB_ENV

# ==== Builds ====
- name: Build PVSNESLIB Linux/MacOS
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-x64')
shell: bash
export PVSNESLIB_HOME=$(pwd)
make release | tee pvsneslib_release_${{ matrix.name }}.log
- name: Build & Release PVSNESLIB for Windows
if: (matrix.name == 'windows')
shell: msys2 {0}
run: |
cd pvsneslib
export PVSNESLIB_HOME=`pwd`
make
cd ..

- name: Build PVSNESLIB Windows
if: (matrix.name == 'Windows-x64') || (matrix.name == 'Windows-x32')
shell: cmd
export PVSNESLIB_HOME=$(pwd)
make release | tee pvsneslib_release_${{ matrix.name }}.log
- name: Build & Release PVSNESLIB for MacOS
if: (matrix.name == 'darwin')
run: |
cd pvsneslib
#set PVSNESLIB_HOME=%CD% it is D:\a\pvsneslib\pvsneslib\pvsneslib (not working after)
set PVSNESLIB_HOME=/d/a/pvsneslib/pvsneslib/pvsneslib
echo %PVSNESLIB_HOME%
msys2 -c 'make'
cd ..
export PVSNESLIB_HOME=$(pwd)
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
make release | tee pvsneslib_release_${{ matrix.name }}.log

# ==== Packaging ====
- name: Package build Linux/MacOS
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-x64')
shell: bash
# ------------------------------------ #
# Checking libraries linking #
# ------------------------------------ #
- name: Checking libraries linking PVSNESLIB toolchain
if: matrix.name == 'darwin'
run: |
cd pvsneslib
mkdir package
mkdir -p package/pvsneslib
mkdir -p package/pvsneslib/pvsneslib
cp -r devkitsnes package/pvsneslib
cp -r pvsneslib/include package/pvsneslib/pvsneslib
cp -r pvsneslib/lib package/pvsneslib/pvsneslib
cp -r pvsneslib/pvsneslib_license.txt package/pvsneslib/pvsneslib_license.txt
cp -r pvsneslib/pvsneslib_snesmod.txt package/pvsneslib/pvsneslib_snesmod.txt
cp -r pvsneslib/pvsneslib_version.txt package/pvsneslib/pvsneslib_version.txt
cp -r snes-examples package/pvsneslib/snes-examples
cd package
tar -czf ${{ env.BUILD_PACKAGE_FILENAME }} pvsneslib
cd ..
cd ..

- name: Package build Windows
if: (matrix.name == 'Windows-x64') || (matrix.name == 'Windows-x32')
shell: cmd
otool -L devkitsnes/bin/* devkitsnes/tools/* | tee pvsneslib_toolchain_linking_${{ matrix.name }}.log || true
- name: Checking libraries linking PVSNESLIB toolchain
if: matrix.name == 'windows' || matrix.name == 'linux'
run: |
cd pvsneslib
mkdir package
mkdir package\pvsneslib
mkdir package\pvsneslib\pvsneslib
cp -r devkitsnes package\pvsneslib
cp -r pvsneslib\include package\pvsneslib\pvsneslib
cp -r pvsneslib\lib package\pvsneslib\pvsneslib
cp -r pvsneslib\pvsneslib_license.txt package\pvsneslib\pvsneslib_license.txt
cp -r pvsneslib\pvsneslib_snesmod.txt package\pvsneslib\pvsneslib_snesmod.txt
cp -r pvsneslib\pvsneslib_version.txt package\pvsneslib\pvsneslib_version.txt
cp -r snes-examples package\pvsneslib\snes-examples
cd package
7z a ${{ env.BUILD_PACKAGE_FILENAME }} pvsneslib
cd ..
cd ..
ldd devkitsnes/bin/* devkitsnes/tools/* | tee pvsneslib_toolchain_linking_${{ matrix.name }}.log || true

# ------------------------------------ #
# Upload releases #
# ------------------------------------ #
- name: Upload PVSNESLIB release
uses: actions/upload-artifact@v3
with:
name: PVSNESLIB Release for ${{ matrix.name }}
path: release/pvsneslib_64b_${{ matrix.name }}.zip

- name: Store build
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-64') || ('Windows-x64') || ('Windows-x32')
# ------------------------------------ #
# Upload releases #
# ------------------------------------ #
- name: Upload PVSNESLIB logs
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.name }}-build
path: pvsneslib/package/${{ env.BUILD_PACKAGE_FILENAME }}
# retention-days: 14
name: PVSNESLIB Release Logs for ${{ matrix.name }}
path: "*.log"
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ release
# exclude binaries (specific to your OS)
devkitsnes/tools
devkitsnes/bin
# except the python script !
!devkitsnes/bin/816-opt.py

# everything related to submodules
compiler/wla-dx
Expand All @@ -37,8 +35,10 @@ tools/snestools/snestools
tools/snestools/snestools.exe
tools/tmx2snes/tmx2snes
tools/tmx2snes/tmx2snes.exe
tools/816-opt/816-opt
tools/816-opt/816-opt.exe

# tmx2snes files:
# tmx2snes files:
*.b16
*.o16
*.t16
Expand Down Expand Up @@ -66,3 +66,9 @@ linkfile
soundbank.asm
soundbank.h
*.log

# debug files
*.dbg

# Mac OS cache files
.DS_Store
9 changes: 5 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[submodule "compiler/wla-dx"]
path = compiler/wla-dx
url = https://github.com/vhelin/wla-dx
ignore = dirty
[submodule "compiler/tcc-65816"]
path = compiler/tcc-65816
ignore = dirty

[submodule "compiler/tcc"]
path = compiler/tcc
url = https://github.com/alekmaul/tcc.git
ignore = dirty
ignore = dirty