Compare commits

...
2 Commits
Author SHA1 Message Date
Mineek 84897c3563 fix: compilation on macOS 2025-12-11 14:42:13 +01:00
Nick Chan 113c5eb706 Use zstd for toolchains 2025-11-18 01:06:30 +08:00
3 changed files with 7 additions and 5 deletions

No files matched your search

+5 -5
View File
@@ -555,23 +555,23 @@ jobs:
- name: Download toolchain checksum
run: |
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/SHA512SUMS
echo "TOOLCHAIN_CHECKSUM="$(grep ${{ matrix.triple }}-cross.tgz SHA512SUMS | cut -d' ' -f1) >> $GITHUB_ENV
echo "TOOLCHAIN_CHECKSUM="$(grep ${{ matrix.triple }}-cross.tar.zst SHA512SUMS | cut -d' ' -f1) >> $GITHUB_ENV
- name: Download toolchain (cached)
id: toolchain_cache
uses: actions/cache@v3
with:
path: ${{ matrix.triple }}-cross.tgz
path: ${{ matrix.triple }}-cross.tar.zst
key: ${{ matrix.triple }}-${{ env.TOOLCHAIN_CHECKSUM }}-toolchain
- name: Download toolchain
if: steps.toolchain_cache.outputs.cache-hit != 'true'
run: |
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/${{ matrix.triple }}-cross.tgz
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/${{ matrix.triple }}-cross.tar.zst
- name: Setup environment
run: |
tar -xf ${{ matrix.triple }}-cross.tgz
tar --zstd -xf ${{ matrix.triple }}-cross.tar.zst
mkdir sysroot
echo "$(pwd)/${{ matrix.triple }}-cross/bin" >> $GITHUB_PATH
case ${{ matrix.triple }} in
@@ -884,7 +884,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v9
+1
View File
@@ -14,6 +14,7 @@
#include <palerain.h>
#include <sys/mman.h>
#include <inttypes.h>
#include <sys/stat.h>
#ifdef TUI
#include <tui.h>
#endif
+1
View File
@@ -13,6 +13,7 @@
#include <getopt.h>
#include <sys/mman.h>
#include <errno.h>
#include <sys/stat.h>
int override_file(override_file_t *finfo, niarelap_file_t** orig, unsigned int *orig_len, char *filename) {
int ret = 0;