Skip to content

Commit addbede

Browse files
committed
Merge remote-tracking branch 'origin/master' into update-simavr-3-3-24
2 parents 35a0a54 + 1ec65e8 commit addbede

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ jobs:
9090
9191
- name: Upload artifact
9292
if: ${{ !github.event.pull_request }}
93-
uses: actions/upload-artifact@v3.1.1
93+
uses: actions/upload-artifact@v4
9494
with:
95-
name: Binaries
95+
name: Binaries-linux
9696
path: ${{ runner.workspace }}/MK404/build/MK404-development-build.tar.bz2
9797

9898
build_osx:
99+
continue-on-error: true
99100
# The type of runner that the job will run on
100101
runs-on: macos-latest
101102
if: "!contains(github.event.head_commit.message, 'NO_BUILD')"
@@ -134,9 +135,9 @@ jobs:
134135
135136
- name: Upload OSX artifact
136137
if: ${{ !github.event.pull_request }}
137-
uses: actions/upload-artifact@v3.1.1
138+
uses: actions/upload-artifact@v4
138139
with:
139-
name: Binaries
140+
name: Binaries-osx
140141
path: ${{ runner.workspace }}/MK404/build/MK404_OSX
141142

142143
build_cygwin:
@@ -202,9 +203,9 @@ jobs:
202203

203204
- name: Upload Cygwin artifact
204205
if: ${{ !github.event.pull_request }}
205-
uses: actions/upload-artifact@v3.1.1
206+
uses: actions/upload-artifact@v4
206207
with:
207-
name: Binaries
208+
name: Binaries-win
208209
path: ${{ runner.workspace }}/MK404/build/MK404.exe
209210

210211
Publish:
@@ -213,14 +214,15 @@ jobs:
213214
needs: [build, build_osx, build_cygwin]
214215
steps:
215216
- name: Retrieve platform binaries
216-
uses: actions/download-artifact@v3.0.2
217+
uses: actions/download-artifact@v4.1.7
217218
with:
218-
name: Binaries
219+
pattern: Binaries-*
220+
merge-multiple: true
219221

220222
- name: Extract assets
221223
run: |
222224
tar -jxvf MK404-development-build.tar.bz2
223-
mv MK404_OSX MK404-dev/
225+
if [ -f MK404_OSX ]; then mv MK404_OSX MK404-dev/; fi
224226
mv MK404.exe MK404-dev/MK404-cygwin.exe
225227
226228
- name: Check tag version

.github/workflows/tests.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ jobs:
7575
- run: cd ${{ runner.workspace }}/MK404/build && tar -zcvf snaps_core.tar.gz tests/snaps/
7676

7777
- name: Upload report
78-
uses: actions/upload-artifact@v3.1.1
78+
uses: actions/upload-artifact@v4
7979
with:
80-
name: Report
80+
name: Report-1
8181
path: |
8282
${{ runner.workspace }}/MK404/build/snaps_core.tar.gz
8383
# ${{ runner.workspace }}/MK404/build/Coverage.tar.gz
8484

8585
- name: Upload coverage artifact
86-
uses: actions/upload-artifact@v3.1.1
86+
uses: actions/upload-artifact@v4
8787
with:
8888
name: Coverage
8989
path: |
@@ -160,14 +160,14 @@ jobs:
160160
- run: cd ${{ runner.workspace }}/MK404/build && tar -zcvf snaps_ext1.tar.gz tests/snaps/
161161

162162
- name: Upload report
163-
uses: actions/upload-artifact@v3.1.1
163+
uses: actions/upload-artifact@v4
164164
with:
165-
name: Report
165+
name: Report-2
166166
path: |
167167
${{ runner.workspace }}/MK404/build/snaps_ext1.tar.gz
168168
169169
- name: Upload coverage artifact
170-
uses: actions/upload-artifact@v3.1.1
170+
uses: actions/upload-artifact@v4
171171
with:
172172
name: Coverage2
173173
path: |
@@ -201,20 +201,22 @@ jobs:
201201
submodules: true
202202

203203
- name: Retrieve coverage reports
204-
uses: actions/download-artifact@v3.0.2
204+
uses: actions/download-artifact@v4.1.7
205205
with:
206206
name: Coverage
207207
path: parts
208208

209209
- name: Retrieve coverage reports
210-
uses: actions/download-artifact@v3.0.2
210+
uses: actions/download-artifact@v4.1.7
211211
with:
212212
name: Coverage2
213213
path: ext1
214214

215215

216216
- name: Upload to codecov.io
217-
uses: codecov/codecov-action@v2.1.0
217+
uses: codecov/codecov-action@v4
218+
env:
219+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
218220
with:
219221
# Comma-separated list of files to upload
220222
files: ./parts/parts.info,./ext1/ext1.info

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ set(H_FILES ${H_FILES_base} ${H_FILES_3rdParty})
174174
if (NOT APPLE)
175175
set(NON_APPLE_SRC parts/components/usbip.c)
176176
set_source_files_properties(parts/components/usbip.c PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
177+
SET(LIBELF_EXTRA_INCLUDE)
177178
else()
179+
SET(LIBELF_EXTRA_INCLUDE "/opt/homebrew/include/") # Stupid workaround
178180
set(NON_APPLE_SRC)
179181
endif()
180182

@@ -346,7 +348,7 @@ if (NOT CPPCHECK_ONLY)
346348
#target_link_libraries(Exe ${SDL2_LIBRARIES})
347349

348350
find_package(LibElf REQUIRED)
349-
include_directories(${LIBELF_INCLUDE_DIRS})
351+
include_directories(${LIBELF_INCLUDE_DIRS} ${LIBELF_EXTRA_INCLUDE})
350352
find_package(SDL2)
351353
include_directories(${SDL2_INCLUDE_DIR})
352354
include(FindPNG)
-2 Bytes
Loading

0 commit comments

Comments
 (0)