Skip to content

Commit 30e1db9

Browse files
committed
Fixed CI
1 parent 9d4e77f commit 30e1db9

39 files changed

+945
-383
lines changed

.github/workflows/deploy.yml

+39-35
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
copy bin\WinRing0\WinRing0x64.sys .
2323
7z a -tzip -mx windows_build.zip xmrig.exe config.json WinRing0x64.sys
2424
- name: Upload Windows build artifacts
25-
uses: actions/upload-artifact@v1
25+
uses: actions/upload-artifact@v4
2626
with:
2727
name: windows_build
2828
path: windows_build.zip
@@ -44,7 +44,7 @@ jobs:
4444
cp src/config.json .
4545
tar cfz ubuntu_build.tar.gz xmrig config.json
4646
- name: Upload Ubuntu build artifacts
47-
uses: actions/upload-artifact@v1
47+
uses: actions/upload-artifact@v4
4848
with:
4949
name: ubuntu_build
5050
path: ubuntu_build.tar.gz
@@ -73,7 +73,7 @@ jobs:
7373
cp src/config.json .
7474
tar cfz macos_build.tar.gz xmrig config.json
7575
- name: Upload MacOS build artifacts
76-
uses: actions/upload-artifact@v1
76+
uses: actions/upload-artifact@v4
7777
with:
7878
name: macos_build
7979
path: macos_build.tar.gz
@@ -102,18 +102,20 @@ jobs:
102102
cp src/config.json .
103103
tar cfz macos_build_intel.tar.gz xmrig config.json
104104
- name: Upload MacOS build artifacts
105-
uses: actions/upload-artifact@v1
105+
uses: actions/upload-artifact@v4
106106
with:
107107
name: macos_build_intel
108108
path: macos_build_intel.tar.gz
109109

110110
build_lin_ub12:
111111
name: Build Ubuntu 12.04 artifacts
112112
runs-on: ubuntu-latest
113-
container: ubuntu:12.04
114113
steps:
115-
- name: Prepare build tools
114+
- name: Run build inside docker
116115
run: |
116+
mkdir /tmp/docker
117+
cat >/tmp/docker/script.sh <<EOF
118+
set -x
117119
sed -i -r 's/(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
118120
apt-get update
119121
apt-get install -y python-software-properties
@@ -124,22 +126,24 @@ jobs:
124126
curl -sSL https://cmake.org/files/v3.27/cmake-3.27.9-linux-x86_64.tar.gz | tar -xzC /opt
125127
git clone --depth 1 git://sourceware.org/git/binutils-gdb.git /tmp/binutils-gdb
126128
(cd /tmp/binutils-gdb && git checkout binutils-2_38 && CC=gcc ./configure && make -j$(nproc) && make install)
127-
- name: Checkout code
128-
run: |
129-
git clone https://github.com/C3Pool/xmrig-C3.git .
129+
130+
git clone https://github.com/C3Pool/xmrig-C3.git
131+
cd xmrig
130132
git checkout $GITHUB_REF_NAME
131-
- name: Build project on Ubuntu 12.04
132-
run: |
133-
cd scripts && ./build_deps.sh && cd ..
133+
134+
(cd scripts && ./build_deps.sh && cd ..)
134135
/opt/cmake-3.27.9-linux-x86_64/bin/cmake . -DXMRIG_DEPS=scripts/deps
135136
make -j$(nproc)
136137
cp src/config.json .
137-
tar cfz ubuntu12_build.tar.gz xmrig config.json
138+
tar cfz /tmp/docker/ubuntu12_build.tar.gz xmrig config.json
139+
EOF
140+
chmod +x /tmp/docker/script.sh
141+
docker run -i -v /tmp/docker:/tmp/docker ubuntu:12.04 /bin/bash -c /tmp/docker/script.sh
138142
- name: Upload Ubuntu 12.04 build artifacts
139-
uses: actions/upload-artifact@v1
143+
uses: actions/upload-artifact@v4
140144
with:
141145
name: ubuntu12_build
142-
path: ubuntu12_build.tar.gz
146+
path: /tmp/docker/ubuntu12_build.tar.gz
143147

144148
deploy:
145149
needs: [build_win, build_lin, build_macos, build_macos_intel, build_lin_ub12]
@@ -160,23 +164,23 @@ jobs:
160164
id: version
161165
run: echo ::set-output name=VERSION::$GITHUB_REF_NAME
162166
- name: Download Windows build artifacts
163-
uses: actions/download-artifact@v1
167+
uses: actions/download-artifact@v4
164168
with:
165169
name: windows_build
166170
- name: Download Ubuntu build artifacts
167-
uses: actions/download-artifact@v1
171+
uses: actions/download-artifact@v4
168172
with:
169173
name: ubuntu_build
170174
- name: Download MacOS build artifacts
171-
uses: actions/download-artifact@v1
175+
uses: actions/download-artifact@v4
172176
with:
173177
name: macos_build
174178
- name: Download MacOS (Intel) build artifacts
175-
uses: actions/download-artifact@v1
179+
uses: actions/download-artifact@v4
176180
with:
177181
name: macos_build_intel
178182
- name: Download Ubuntu 12.04 build artifacts
179-
uses: actions/download-artifact@v1
183+
uses: actions/download-artifact@v4
180184
with:
181185
name: ubuntu12_build
182186
- name: Upload Windows build release asset
@@ -185,7 +189,7 @@ jobs:
185189
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
186190
with:
187191
upload_url: ${{ steps.create_release.outputs.upload_url }}
188-
asset_path: windows_build/windows_build.zip
192+
asset_path: windows_build.zip
189193
asset_name: xmrig-${{steps.version.outputs.VERSION}}-win64.zip
190194
asset_content_type: application/zip
191195
- name: Upload Ubuntu build release asset
@@ -194,7 +198,7 @@ jobs:
194198
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
195199
with:
196200
upload_url: ${{ steps.create_release.outputs.upload_url }}
197-
asset_path: ubuntu_build/ubuntu_build.tar.gz
201+
asset_path: ubuntu_build.tar.gz
198202
asset_name: xmrig-${{steps.version.outputs.VERSION}}-lin64.tar.gz
199203
asset_content_type: application/zip
200204
- name: Upload MacOS build release asset
@@ -203,7 +207,7 @@ jobs:
203207
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
204208
with:
205209
upload_url: ${{ steps.create_release.outputs.upload_url }}
206-
asset_path: macos_build/macos_build.tar.gz
210+
asset_path: macos_build.tar.gz
207211
asset_name: xmrig-${{steps.version.outputs.VERSION}}-mac64.tar.gz
208212
asset_content_type: application/zip
209213
- name: Upload MacOS (Intel) build release asset
@@ -212,7 +216,7 @@ jobs:
212216
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
213217
with:
214218
upload_url: ${{ steps.create_release.outputs.upload_url }}
215-
asset_path: macos_build_intel/macos_build_intel.tar.gz
219+
asset_path: macos_build_intel.tar.gz
216220
asset_name: xmrig-${{steps.version.outputs.VERSION}}-mac-intel.tar.gz
217221
asset_content_type: application/zip
218222
- name: Upload Ubuntu 12.04 build release asset
@@ -221,17 +225,17 @@ jobs:
221225
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
222226
with:
223227
upload_url: ${{ steps.create_release.outputs.upload_url }}
224-
asset_path: ubuntu12_build/ubuntu12_build.tar.gz
228+
asset_path: ubuntu12_build.tar.gz
225229
asset_name: xmrig-${{steps.version.outputs.VERSION}}-lin64-compat.tar.gz
226230
asset_content_type: application/zip
227231
- name: Update xmrig_setup repo
228232
run: |
229233
git clone https://$GITHUB_ACTOR:${{secrets.xmrig_setup_key}}@github.com/C3Pool/xmrig_setup.git
230234
cd xmrig_setup
231235
git config user.name C3Pool
232-
git config user.email support@C3Pool.com
233-
cp ../ubuntu12_build/ubuntu12_build.tar.gz xmrig.tar.gz
234-
cp ../windows_build/windows_build.zip xmrig.zip
236+
git config user.email hkfoan@gmail.com
237+
cp ../ubuntu12_build.tar.gz xmrig.tar.gz
238+
cp ../windows_build.zip xmrig.zip
235239
unzip xmrig.zip
236240
zip -u offline_miner_setup.zip xmrig.exe config.json WinRing0x64.sys
237241
git commit -m "xmrig "$GITHUB_REF_NAME" based release" xmrig.tar.gz xmrig.zip offline_miner_setup.zip
@@ -242,13 +246,13 @@ jobs:
242246
git clone https://$GITHUB_ACTOR:${{secrets.xmrig_setup_key}}@github.com/C3Pool/hiveos.git
243247
cd hiveos
244248
git config user.name C3Pool
245-
git config user.email support@C3Pool.com
246-
tar xf ../ubuntu12_build/ubuntu12_build.tar.gz
247-
mv xmrig mo_xmrig/xmrig
248-
mv config.json mo_xmrig/config_global.json
249+
git config user.email hkfoan@gmail.com
250+
tar xf ../ubuntu12_build.tar.gz
251+
mv xmrig c3_xmrig/xmrig
252+
mv config.json c3_xmrig/config_global.json
249253
export VER=$GITHUB_REF_NAME
250254
export VER=${VER//-/_}
251-
tar -zcvf mo_xmrig-$VER.tar.gz mo_xmrig
252-
git add mo_xmrig-$VER.tar.gz mo_xmrig/xmrig mo_xmrig/config_global.json
253-
git commit -m "xmrig "$GITHUB_REF_NAME" based release" mo_xmrig-$VER.tar.gz
255+
tar -zcvf c3_xmrig-$VER.tar.gz c3_xmrig
256+
git add c3_xmrig-$VER.tar.gz c3_xmrig/xmrig c3_xmrig/config_global.json
257+
git commit -m "xmrig "$GITHUB_REF_NAME" based release" c3_xmrig-$VER.tar.gz
254258
git push

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v6.22.1
2+
- [#3531](https://github.com/xmrig/xmrig/pull/3531) Always reset nonce on RandomX dataset change.
3+
- [#3534](https://github.com/xmrig/xmrig/pull/3534) Fixed threads auto-config on Zen5.
4+
- [#3535](https://github.com/xmrig/xmrig/pull/3535) RandomX: tweaks for Zen5.
5+
- [#3539](https://github.com/xmrig/xmrig/pull/3539) Added Zen5 to `randomx_boost.sh`.
6+
- [#3540](https://github.com/xmrig/xmrig/pull/3540) Detect AMD engineering samples in `randomx_boost.sh`.
7+
18
# v6.22.0
29
- [#2411](https://github.com/xmrig/xmrig/pull/2411) Added support for [Yada](https://yadacoin.io/) (`rx/yada` algorithm).
310
- [#3492](https://github.com/xmrig/xmrig/pull/3492) Fixed `--background` option on Unix systems.

scripts/build.hwloc.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh -e
22

33
HWLOC_VERSION_MAJOR="2"
4-
HWLOC_VERSION_MINOR="10"
5-
HWLOC_VERSION_PATCH="0"
4+
HWLOC_VERSION_MINOR="11"
5+
HWLOC_VERSION_PATCH="2"
66

77
HWLOC_VERSION="${HWLOC_VERSION_MAJOR}.${HWLOC_VERSION_MINOR}.${HWLOC_VERSION_PATCH}"
88

scripts/build.openssl3.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh -e
22

3-
OPENSSL_VERSION="3.0.14"
3+
OPENSSL_VERSION="3.0.15"
44

55
mkdir -p deps
66
mkdir -p deps/include

scripts/build.uv.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh -e
22

3-
UV_VERSION="1.48.0"
3+
UV_VERSION="1.49.2"
44

55
mkdir -p deps
66
mkdir -p deps/include

scripts/randomx_boost.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
modprobe msr allow_writes=on
99
fi
1010

11-
if grep -E 'AMD Ryzen|AMD EPYC' /proc/cpuinfo > /dev/null;
11+
if grep -E 'AMD Ryzen|AMD EPYC|AuthenticAMD' /proc/cpuinfo > /dev/null;
1212
then
1313
if grep "cpu family[[:space:]]\{1,\}:[[:space:]]25" /proc/cpuinfo > /dev/null;
1414
then
@@ -28,6 +28,14 @@ if grep -E 'AMD Ryzen|AMD EPYC' /proc/cpuinfo > /dev/null;
2828
wrmsr -a 0xc001102b 0x2000cc10
2929
echo "MSR register values for Zen3 applied"
3030
fi
31+
elif grep "cpu family[[:space:]]\{1,\}:[[:space:]]26" /proc/cpuinfo > /dev/null;
32+
then
33+
echo "Detected Zen5 CPU"
34+
wrmsr -a 0xc0011020 0x4400000000000
35+
wrmsr -a 0xc0011021 0x4000000000040
36+
wrmsr -a 0xc0011022 0x8680000401570000
37+
wrmsr -a 0xc001102b 0x2040cc10
38+
echo "MSR register values for Zen5 applied"
3139
else
3240
echo "Detected Zen1/Zen2 CPU"
3341
wrmsr -a 0xc0011020 0

src/3rdparty/hwloc/NEWS

+66-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright © 2009 CNRS
2-
Copyright © 2009-2023 Inria. All rights reserved.
2+
Copyright © 2009-2024 Inria. All rights reserved.
33
Copyright © 2009-2013 Université Bordeaux
44
Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
55
Copyright © 2020 Hewlett Packard Enterprise. All rights reserved.
@@ -17,6 +17,71 @@ bug fixes (and other actions) for each version of hwloc since version
1717
0.9.
1818

1919

20+
Version 2.11.2
21+
--------------
22+
* Add missing CPU info attrs on aarch64 on Linux.
23+
* Use ACPI CPPC on Linux to get better information about cpukinds,
24+
at least on AMD CPUs.
25+
* Fix crash when manipulating cpukinds after topology
26+
duplication, thanks to Hadrien Grasland for the report.
27+
* Fix missing input target checks in memattr functions,
28+
thanks to Hadrien Grasland for the report.
29+
* Fix a memory leak when ignoring NUMA distances on FreeBSD.
30+
* Fix build failure on old Linux distributions without accessat().
31+
* Fix non-Windows importing of XML topologies and CPUID dumps exported
32+
on Windows.
33+
* hwloc-calc --cpuset-output-format systemd-dbus-api now allows
34+
to generate AllowedCPUs information for systemd slices.
35+
See the hwloc-calc manpage for examples. Thanks to Pierre Neyron.
36+
* Some fixes in manpage EXAMPLES and split them into subsections.
37+
38+
39+
Version 2.11.1
40+
--------------
41+
* Fix bash completions, thanks Tavis Rudd.
42+
43+
44+
Version 2.11.0
45+
--------------
46+
* API
47+
+ Add HWLOC_MEMBIND_WEIGHTED_INTERLEAVE memory binding policy on
48+
Linux 6.9+. Thanks to Honggyu Kim for the patch.
49+
- weighted_interleave_membind is added to membind support bits.
50+
- The "weighted" policy is added to the hwloc-bind tool.
51+
+ Add hwloc_obj_set_subtype(). Thanks to Hadrien Grasland for the report.
52+
* GPU support
53+
+ Don't hide the GPU NUMA node on NVIDIA Grace Hopper.
54+
+ Get Intel GPU OpenCL device locality.
55+
+ Add bandwidths between subdevices in the LevelZero XeLinkBandwidth
56+
matrix.
57+
+ Fix PCI Gen4+ link speed of NVIDIA GPU obtained from NVML,
58+
thanks to Akram Sbaih for the report.
59+
* Windows support
60+
+ Fix Windows support when UNICODE is enabled, several hwloc features
61+
were missing, thanks to Martin for the report.
62+
+ Fix the enabling of CUDA in Windows CMake build,
63+
Thanks to Moritz Kreutzer for the patch.
64+
+ Fix CUDA/OpenCL test source path in Windows CMake.
65+
* Tools
66+
+ Option --best-memattr may now return multiple nodes. Additional
67+
configuration flags may be given to tweak its behavior.
68+
+ hwloc-info has a new --get-attr option to get a single attribute.
69+
+ hwloc-info now supports "levels", "support" and "topology"
70+
special keywords for backward compatibility for hwloc 3.0.
71+
+ The --taskset command-line option is superseded by the new
72+
--cpuset-output-format which also allows to export as list.
73+
+ hwloc-calc may now import bitmasks described as a list of bits
74+
with the new "--cpuset-input-format list".
75+
* Misc
76+
+ The MemoryTiersNr info attribute in the root object now says how many
77+
memory tiers were built. Thanks to Antoine Morvan for the report.
78+
+ Fix the management of infinite cpusets in the bitmap printf/sscanf
79+
API as well as in command-line tools.
80+
+ Add section "Compiling software on top of hwloc's C API" in the
81+
documentation with examples for GNU Make and CMake,
82+
thanks to Florent Pruvost for the help.
83+
84+
2085
Version 2.10.0
2186
--------------
2287
* Heterogeneous Memory core improvements

src/3rdparty/hwloc/README

+2-8
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,8 @@ return 0;
418418
}
419419

420420
hwloc provides a pkg-config executable to obtain relevant compiler and linker
421-
flags. For example, it can be used thusly to compile applications that utilize
422-
the hwloc library (assuming GNU Make):
423-
424-
CFLAGS += $(shell pkg-config --cflags hwloc)
425-
LDLIBS += $(shell pkg-config --libs hwloc)
426-
427-
hwloc-hello: hwloc-hello.c
428-
$(CC) hwloc-hello.c $(CFLAGS) -o hwloc-hello $(LDLIBS)
421+
flags. See Compiling software on top of hwloc's C API for details on building
422+
program on top of hwloc's API using GNU Make or CMake.
429423

430424
On a machine 2 processor packages -- each package of which has two processing
431425
cores -- the output from running hwloc-hello could be something like the

src/3rdparty/hwloc/VERSION

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Please update HWLOC_VERSION* in contrib/windows/hwloc_config.h too.
99

1010
major=2
11-
minor=10
12-
release=0
11+
minor=11
12+
release=2
1313

1414
# greek is used for alpha or beta release tags. If it is non-empty,
1515
# it will be appended to the version number. It does not have to be
@@ -22,7 +22,7 @@ greek=
2222

2323
# The date when this release was created
2424

25-
date="Dec 04, 2023"
25+
date="Sep 26, 2024"
2626

2727
# If snapshot=1, then use the value from snapshot_version as the
2828
# entire hwloc version (i.e., ignore major, minor, release, and
@@ -41,6 +41,6 @@ snapshot_version=${major}.${minor}.${release}${greek}-git
4141
# 2. Version numbers are described in the Libtool current:revision:age
4242
# format.
4343

44-
libhwloc_so_version=22:0:7
44+
libhwloc_so_version=23:1:8
4545

4646
# Please also update the <TargetName> lines in contrib/windows/libhwloc.vcxproj

0 commit comments

Comments
 (0)