Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
d6ca3e7
test windows runner
Rhekar May 27, 2023
257ff91
Add rsync
Rhekar May 27, 2023
2ccb25d
Update main.yml
Rhekar May 27, 2023
dd2744e
Update main.yml
Rhekar May 27, 2023
803afa6
Update main.yml
Rhekar May 27, 2023
ea8a919
Update main.yml
Rhekar May 27, 2023
4a5aa48
Update main.yml
Rhekar May 27, 2023
89b3937
Update main.yml
Rhekar May 27, 2023
409ae73
Update main.yml
Rhekar May 27, 2023
c029b74
Update main.yml
Rhekar May 27, 2023
60e34cb
Update main.yml
Rhekar May 27, 2023
725ad0c
Update main.yml
Rhekar May 27, 2023
df8f919
Update main.yml
Rhekar May 27, 2023
d99e8f7
Update main.yml
Rhekar May 27, 2023
3d517f7
Update main.yml
Rhekar May 27, 2023
663a725
Update main.yml
Rhekar May 27, 2023
4c938bf
Update main.yml
Rhekar May 27, 2023
75f1464
Update main.yml
Rhekar May 27, 2023
fdbd636
Update main.yml
Rhekar May 27, 2023
3d75e15
Update main.yml
Rhekar May 27, 2023
0d764a4
Update main.yml
Rhekar May 27, 2023
b547898
Update main.yml
Rhekar May 27, 2023
6db00b3
Update main.yml
Rhekar May 27, 2023
2f62c39
Update main.yml
Rhekar May 27, 2023
8e7d0e0
Update main.yml
Rhekar May 27, 2023
ade9643
Update main.yml
Rhekar May 27, 2023
ec8d207
Update main.yml
Rhekar May 27, 2023
b267031
Update main.yml
Rhekar May 27, 2023
25a9f44
Update main.yml
Rhekar May 27, 2023
484977a
Update main.yml
Rhekar May 27, 2023
91ec847
Update main.yml
Rhekar May 27, 2023
994f764
Update main.yml
Rhekar May 27, 2023
8c86f09
Update main.yml
Rhekar May 27, 2023
0dee38d
Update main.yml
Rhekar May 27, 2023
415e26b
Update main.yml
Rhekar May 27, 2023
3c3f9fe
Update main.yml
Rhekar May 27, 2023
c968742
Update main.yml
Rhekar May 27, 2023
8f78eb7
Update main.yml
Rhekar May 27, 2023
ebb9fc8
test
Rhekar May 27, 2023
ddf6838
test windows runner
Rhekar May 27, 2023
7e8b9e8
Add rsync
Rhekar May 27, 2023
df5772d
Update main.yml
Rhekar May 27, 2023
c7bdf75
Update main.yml
Rhekar May 27, 2023
a93c9b7
Update main.yml
Rhekar May 27, 2023
78b50f6
Update main.yml
Rhekar May 27, 2023
4e3e35f
Update main.yml
Rhekar May 27, 2023
8afffa4
Update main.yml
Rhekar May 27, 2023
d139dbf
Update main.yml
Rhekar May 27, 2023
072b085
Update main.yml
Rhekar May 27, 2023
cdc86e7
Update main.yml
Rhekar May 27, 2023
2898ca5
Update main.yml
Rhekar May 27, 2023
3bb2f8c
Update main.yml
Rhekar May 27, 2023
eead090
Update main.yml
Rhekar May 27, 2023
7d5ec10
Update main.yml
Rhekar May 27, 2023
7a678f5
Update main.yml
Rhekar May 27, 2023
d6b4215
Update main.yml
Rhekar May 27, 2023
aa62ec6
Update main.yml
Rhekar May 27, 2023
ebbe0b9
Update main.yml
Rhekar May 27, 2023
f16d5a2
Update main.yml
Rhekar May 27, 2023
d10ba98
Update main.yml
Rhekar May 27, 2023
d5ce71f
Update main.yml
Rhekar May 27, 2023
f87d9ab
Update main.yml
Rhekar May 27, 2023
0add0c3
Update main.yml
Rhekar May 27, 2023
9ed5a40
Update main.yml
Rhekar May 27, 2023
48057a4
Update main.yml
Rhekar May 27, 2023
84f668b
Update main.yml
Rhekar May 27, 2023
5bc186f
Update main.yml
Rhekar May 27, 2023
48089f4
Update main.yml
Rhekar May 27, 2023
be4c0a2
Update main.yml
Rhekar May 27, 2023
9e3b565
Update main.yml
Rhekar May 27, 2023
a92881e
Update main.yml
Rhekar May 27, 2023
f4b7791
Update main.yml
Rhekar May 27, 2023
7e22646
Update main.yml
Rhekar May 27, 2023
21b38c7
Update main.yml
Rhekar May 27, 2023
843687b
Update main.yml
Rhekar May 27, 2023
e42c2a7
Update main.yml
Rhekar May 27, 2023
01e6aa1
Update main.yml
Rhekar May 27, 2023
aee6619
test
Rhekar May 27, 2023
6a354bb
Merge branch 'workflow-testing' of github.com:Rhekar/CCCaster into wo…
Rhekar May 27, 2023
bb52fd5
Update main.yml
Rhekar Jul 15, 2023
35b0d3d
test
Rhekar Jul 15, 2023
ef7c3cb
Update Makefile
Rhekar Jul 15, 2023
dde0268
Update make_depend
Rhekar Jul 16, 2023
741c8bf
Update make_depend
Rhekar Jul 16, 2023
2ee94b7
Update make_depend
Rhekar Jul 17, 2023
e345625
Update make_depend
Rhekar Jul 17, 2023
a8d3280
Update Makefile
Rhekar Jul 17, 2023
57dbe08
Update main.yml
Rhekar Jul 17, 2023
e9c5a84
Update Makefile
Rhekar Jul 17, 2023
851cad2
Update Makefile
Rhekar Jul 17, 2023
8ab9de4
Update make_depend
Rhekar Jul 17, 2023
a196391
Update make_depend
Rhekar Jul 17, 2023
f20bdf1
Update make_depend
Rhekar Jul 17, 2023
8023f36
Update make_depend
Rhekar Jul 17, 2023
ee7d211
Update Makefile
Rhekar Jul 17, 2023
9214ece
Update main.yml
Rhekar Jul 17, 2023
a5d354b
Update Makefile
Rhekar Jul 17, 2023
075f227
Update Makefile
Rhekar Jul 17, 2023
324ac6d
Update Makefile
Rhekar Jul 17, 2023
dd6b0bc
Update Makefile
Rhekar Jul 17, 2023
5e48c54
Update main.yml
Rhekar Jul 17, 2023
f25b08a
Update main.yml
Rhekar Jul 17, 2023
a921bce
ubuntu
Rhekar Jul 17, 2023
4e8fe3d
Update Makefile
Rhekar Jul 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 75 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,88 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
#defaults:
# run:
# shell: bash.exe {0}
steps:
#- uses: msys2/setup-msys2@v2
# with:
# msystem: MINGW32
# path-type: inherit
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

with:
submodules: true
# Update references
#- name: Git Sumbodule Update
# run: |
# git submodule update --remote --recursive
#- name: Cache choco packages
# uses: actions/cache@v3
# with:
# key: key
# path: C:\Users\runneradmin\AppData\Local\Temp\chocolatey\winlibs\
# Runs a single command using the runners shell
- name: Run a one-line script
run: uname
#- name: Run a one-line script
# run: |
# uname
# pacman -S mingw-w64-i686-toolchain
# pacman -Q | grep mingw
# echo $PATH
# echo %PATH%
# ls
# ls /mingw64/bin
# #ls -al /usr/local/bin
# ls -l /usr/bin
# ls -l /bin
# ls -l /mingw32/
# ls -l /mingw32/bin
# ls -l /c/Msys2
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
- name: Install wine
with:
platform: x86
- name: test windows
run: |
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
sudo apt install --install-recommends winehq-stable
echo $PATH
#choco install winlibs --x86
#choco install rsync make
#echo "/c/ProgramData/chocolatey/lib/winlibs/tools/mingw32/bin" >> $GITHUB_PATH
#echo "/c/ProgramData/chocolatey/lib/winlibs/tools/mingw32/i686-w64-mingw32/bin" >> $GITHUB_PATH
#dir "C:\msys64"
#dir "C:\msys64\mingw32"
#dir "C:\msys64\mingw32\bin"
#dir C:\ProgramData\Chocolatey\bin
#dir C:\ProgramData\chocolatey\lib\mingw\
#dir C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin
#choco install tree
#tree C:\ProgramData\chocolatey\lib\
#- name: test windowaaaaaa
# run: |
# echo $PATH
# echo %PATH%
# ls -l /c/ProgramData/chocolatey/lib/winlibs/tools/mingw32/bin
# which i686-w64-mingw32-g++
# dir C:\ProgramData\Chocolatey\bin
# dir C:\
# dir "C:\Program Files"
# dir "C:\Program Files (x86)"

# Setup build functions
#- name: Set up MinGW
# uses: egor-tensin/setup-mingw@v2
#- name: Install Tools
# uses: crazy-max/ghaction-chocolatey@v2
# with:
# args: install rsync make mingw
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: make release
run: |
which i686-w64-mingw32-g++
make release -i
# post debug
#- name: Post Debug
# run: |
# dir
# cat .depend_master
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SHELL := /bin/bash
PATH := $(PATH)
VERSION = 3.1
SUFFIX = .004
NAME = cccaster
Expand Down Expand Up @@ -53,6 +55,7 @@ MAIN_OBJECTS = $(MAIN_CPP_SRCS:.cpp=.o) $(CONTRIB_CC_SRCS:.cc=.o) $(CONTRIB_CPP_
DLL_OBJECTS = $(DLL_CPP_SRCS:.cpp=.o) $(HOOK_CC_SRCS:.cc=.o) $(HOOK_C_SRCS:.c=.o) $(CONTRIB_C_SRCS:.c=.o) $(CONTRIB_CPP_SRCS:.cpp=.o)

# Tool chain
PREFIX = /c/ProgramData/chocolatey/lib/winlibs/tools/mingw32/bin/i686-w64-mingw32-
PREFIX = i686-w64-mingw32-
GCC = $(PREFIX)gcc
CXX = $(PREFIX)g++
Expand Down
12 changes: 6 additions & 6 deletions scripts/make_depend
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ if [ $? -ne 0 ]; then
cp /dev/null .depend_$branch

for type in build_debug_$branch build_release_$branch build_logging_$branch; do
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/sequences\/\1/" tmp_depend0 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/netplay\/\1/" tmp_depend1 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/tools\/\1/" tmp_depend2 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/targets\/\1/" tmp_depend3 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/lib\/\1/" tmp_depend4 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/tests\/\1/" tmp_depend5 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/sequences\/\1/;s/\\\:/:/g" tmp_depend0 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/netplay\/\1/;s/\\\:/:/g" tmp_depend1 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/tools\/\1/;s/\\\:/:/g" tmp_depend2 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/targets\/\1/;s/\\\:/:/g" tmp_depend3 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/lib\/\1/;s/\\\:/:/g" tmp_depend4 >> .depend_$branch
sed -r "s/^([A-Za-z.]+\.o\: )/$type\/tests\/\1/;s/\\\:/:/g" tmp_depend5 >> .depend_$branch
done

rm -f tmp_depend*
Expand Down