CI updates
This commit is contained in:
parent
3068d19492
commit
2e39c924d5
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -117,7 +117,7 @@ jobs:
|
|||||||
(cd tmp/artifact && tar --sort=name --zstd -cf "$N.tar.zst" "$N" && rm -rf "./$N" && ls -la && zstd -tq "$N.tar.zst")
|
(cd tmp/artifact && tar --sort=name --zstd -cf "$N.tar.zst" "$N" && rm -rf "./$N" && ls -la && zstd -tq "$N.tar.zst")
|
||||||
echo "artifact_name=$N" >> $GITHUB_ENV
|
echo "artifact_name=$N" >> $GITHUB_ENV
|
||||||
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v5
|
||||||
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
||||||
- name: Run install tests
|
- name: Run install tests
|
||||||
run: |
|
run: |
|
||||||
@ -222,7 +222,7 @@ jobs:
|
|||||||
(cd tmp/artifact && tar --sort=name --zstd -cf "$N.tar.zst" "$N" && rm -rf "./$N" && ls -la && zstd -tq "$N.tar.zst")
|
(cd tmp/artifact && tar --sort=name --zstd -cf "$N.tar.zst" "$N" && rm -rf "./$N" && ls -la && zstd -tq "$N.tar.zst")
|
||||||
echo "artifact_name=$N" >> $GITHUB_ENV
|
echo "artifact_name=$N" >> $GITHUB_ENV
|
||||||
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v5
|
||||||
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
||||||
- name: Run install tests
|
- name: Run install tests
|
||||||
run: |
|
run: |
|
||||||
@ -364,7 +364,7 @@ jobs:
|
|||||||
(cd tmp/artifact && gtar --sort=name --zstd -cf "$N.tar.zst" "$N" && rm -rf "./$N" && ls -la && zstd -tq "$N.tar.zst")
|
(cd tmp/artifact && gtar --sort=name --zstd -cf "$N.tar.zst" "$N" && rm -rf "./$N" && ls -la && zstd -tq "$N.tar.zst")
|
||||||
echo "artifact_name=$N" >> $GITHUB_ENV
|
echo "artifact_name=$N" >> $GITHUB_ENV
|
||||||
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v5
|
||||||
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
||||||
- name: Run install tests
|
- name: Run install tests
|
||||||
run: |
|
run: |
|
||||||
@ -468,7 +468,7 @@ jobs:
|
|||||||
(cd tmp/artifact && tar --sort=name --gzip -cf "$N.tar.gz" "$N" && rm -rf "./$N" && ls -la && gzip -tq "$N.tar.gz")
|
(cd tmp/artifact && tar --sort=name --gzip -cf "$N.tar.gz" "$N" && rm -rf "./$N" && ls -la && gzip -tq "$N.tar.gz")
|
||||||
echo "artifact_name=$N" >> $GITHUB_ENV
|
echo "artifact_name=$N" >> $GITHUB_ENV
|
||||||
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v5
|
||||||
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
||||||
- name: Run ctest tests
|
- name: Run ctest tests
|
||||||
run: |
|
run: |
|
||||||
@ -563,7 +563,7 @@ jobs:
|
|||||||
(cd tmp/artifact && tar --sort=name --gzip -cf "$N.tar.gz" "$N" && rm -rf "./$N" && ls -la && gzip -tq "$N.tar.gz")
|
(cd tmp/artifact && tar --sort=name --gzip -cf "$N.tar.gz" "$N" && rm -rf "./$N" && ls -la && gzip -tq "$N.tar.gz")
|
||||||
echo "artifact_name=$N" >> $GITHUB_ENV
|
echo "artifact_name=$N" >> $GITHUB_ENV
|
||||||
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v5
|
||||||
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
||||||
- name: Mimic ctest tests
|
- name: Mimic ctest tests
|
||||||
if: ${{ matrix.vsarch != 'amd64_arm64' }}
|
if: ${{ matrix.vsarch != 'amd64_arm64' }}
|
||||||
@ -733,7 +733,7 @@ jobs:
|
|||||||
(cd tmp/artifact && tar --sort=name --zstd -cf "$N.tar.zst" "$N" && rm -rf "./$N" && ls -la && zstd -tq "$N.tar.zst")
|
(cd tmp/artifact && tar --sort=name --zstd -cf "$N.tar.zst" "$N" && rm -rf "./$N" && ls -la && zstd -tq "$N.tar.zst")
|
||||||
echo "artifact_name=$N" >> $GITHUB_ENV
|
echo "artifact_name=$N" >> $GITHUB_ENV
|
||||||
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
- name: ${{ format('Upload artifact {0}', env.artifact_name) }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v5
|
||||||
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
||||||
- name: Run install tests
|
- name: Run install tests
|
||||||
if: ${{ contains(matrix.zig_target, '-linux') }}
|
if: ${{ contains(matrix.zig_target, '-linux') }}
|
||||||
|
|||||||
@ -1104,11 +1104,11 @@ void upx_compiler_sanity_check(void) noexcept {
|
|||||||
alignas(16) static constexpr const byte dd[32] = {
|
alignas(16) static constexpr const byte dd[32] = {
|
||||||
0, 0, 0, 0, 0, 0, 0, 0xff, 0xfe, 0xfd, 0xfc, 0xfb, 0xfa, 0xf9, 0xf8, 0,
|
0, 0, 0, 0, 0, 0, 0, 0xff, 0xfe, 0xfd, 0xfc, 0xfb, 0xfa, 0xf9, 0xf8, 0,
|
||||||
0, 0, 0, 0x7f, 0x7e, 0x7d, 0x7c, 0x7b, 0x7a, 0x79, 0x78, 0, 0, 0, 0, 0};
|
0, 0, 0, 0x7f, 0x7e, 0x7d, 0x7c, 0x7b, 0x7a, 0x79, 0x78, 0, 0, 0, 0, 0};
|
||||||
constexpr const byte *d = dd + 7;
|
|
||||||
#if !defined(upx_fake_alignas_16)
|
#if !defined(upx_fake_alignas_16)
|
||||||
assert_noexcept(ptr_is_aligned<16>(dd));
|
assert_noexcept(ptr_is_aligned<16>(dd));
|
||||||
assert_noexcept(ptr_is_aligned(dd, 16));
|
assert_noexcept(ptr_is_aligned(dd, 16));
|
||||||
#endif
|
#endif
|
||||||
|
constexpr const byte *d = dd + 7;
|
||||||
static_assert(upx::compile_time::get_be16(d) == 0xfffe);
|
static_assert(upx::compile_time::get_be16(d) == 0xfffe);
|
||||||
static_assert(upx::compile_time::get_be24(d) == 0xfffefd);
|
static_assert(upx::compile_time::get_be24(d) == 0xfffefd);
|
||||||
static_assert(upx::compile_time::get_be32(d) == 0xfffefdfc);
|
static_assert(upx::compile_time::get_be32(d) == 0xfffefdfc);
|
||||||
|
|||||||
@ -1497,7 +1497,7 @@ void PeFile::processTls2(Reloc *const rel, const Interval *const iv, unsigned ne
|
|||||||
otls + (iv->ivarr[ic].start - (tlsp->datastart - imagebase) + sizeof(tls)));
|
otls + (iv->ivarr[ic].start - (tlsp->datastart - imagebase) + sizeof(tls)));
|
||||||
LEXX *const p = (LEXX *) raw_bytes(pp, sizeof(LEXX));
|
LEXX *const p = (LEXX *) raw_bytes(pp, sizeof(LEXX));
|
||||||
cb_value_t kc = *p;
|
cb_value_t kc = *p;
|
||||||
if (kc < tlsp->dataend && kc >= tlsp->datastart) {
|
if (kc >= tlsp->datastart && kc < tlsp->dataend) {
|
||||||
// add a relocation entry referring to an address inside of the original tls data area
|
// add a relocation entry referring to an address inside of the original tls data area
|
||||||
// - as the new tls area is moved, the referred address have to be also adjusted
|
// - as the new tls area is moved, the referred address have to be also adjusted
|
||||||
kc += newaddr + sizeof(tls) - tlsp->datastart;
|
kc += newaddr + sizeof(tls) - tlsp->datastart;
|
||||||
@ -1507,7 +1507,7 @@ void PeFile::processTls2(Reloc *const rel, const Interval *const iv, unsigned ne
|
|||||||
// add a relocation entry referring to an address outside of the original tls data area
|
// add a relocation entry referring to an address outside of the original tls data area
|
||||||
// by adding the difference of the new tlsdatastart and the old tlsdatastart to
|
// by adding the difference of the new tlsdatastart and the old tlsdatastart to
|
||||||
// the address of the original relocation record
|
// the address of the original relocation record
|
||||||
unsigned const a =
|
const unsigned a =
|
||||||
iv->ivarr[ic].start + (newaddr + sizeof(tls)) - (tlsp->datastart - imagebase);
|
iv->ivarr[ic].start + (newaddr + sizeof(tls)) - (tlsp->datastart - imagebase);
|
||||||
// Must not overwrite compressed data
|
// Must not overwrite compressed data
|
||||||
if (a < newaddr && !opt->win32_pe.strip_relocs)
|
if (a < newaddr && !opt->win32_pe.strip_relocs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user