mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
fix
This commit is contained in:
4
.github/workflows/server.yml
vendored
4
.github/workflows/server.yml
vendored
@@ -110,7 +110,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cmake build
|
- name: Cmake build
|
||||||
run: |
|
run: |
|
||||||
cmake -B"build" -S"libdhfs_support" -DDHFS_LIB_INSTALL="result"
|
cmake -B"build" -S"libdhfs_support" -DDHFS_LIB_INSTALL="$(pwd)/result"
|
||||||
cmake --build build --target install
|
cmake --build build --target install
|
||||||
|
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
@@ -132,7 +132,7 @@ jobs:
|
|||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
CROSS_PLATFORM="linux/arm64" libdhfs_support/builder/cross-build.sh both build result
|
CROSS_PLATFORM="linux/arm64" libdhfs_support/builder/cross-build.sh both build "$(pwd)/result"
|
||||||
|
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ export SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd
|
|||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
DOCKER_IMG_FILE=$(mktemp)
|
DOCKER_IMG_FILE=$(mktemp)
|
||||||
docker build --iidfile "$DOCKER_IMG_FILE" .
|
docker build $PLATFORM_ARG --iidfile "$DOCKER_IMG_FILE" .
|
||||||
|
|
||||||
ROOT_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
|
ROOT_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
|
||||||
|
|
||||||
docker run --rm -v "$ROOT_DIR:$ROOT_DIR" -e INSIDE_DOCKER_ALREADY=TRUE "$(cat "$DOCKER_IMG_FILE")" \
|
docker run $PLATFORM_ARG --rm -v "$ROOT_DIR:$ROOT_DIR" -e INSIDE_DOCKER_ALREADY=TRUE "$(cat "$DOCKER_IMG_FILE")" \
|
||||||
"$SCRIPT_DIR/cross-build.sh" "$@"
|
"$SCRIPT_DIR/cross-build.sh" "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user