From 0df7778b25a5d53e4e35c88d27ca593fa7e2439d Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 14 Sep 2020 22:50:30 +0800 Subject: remove unused codes --- .github/workflows/debian_mips.yml | 1 - .github/workflows/ubuntu_arm.yml | 7 +++---- xmake/actions/config/configfiles.lua | 3 --- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/debian_mips.yml b/.github/workflows/debian_mips.yml index 9473cf595..236de6f33 100644 --- a/.github/workflows/debian_mips.yml +++ b/.github/workflows/debian_mips.yml @@ -23,7 +23,6 @@ jobs: bash -c "uname -a && apt update && - apt install sudo && cd /github/workspace && ./scripts/get.sh __local__ && source ~/.xmake/profile && diff --git a/.github/workflows/ubuntu_arm.yml b/.github/workflows/ubuntu_arm.yml index feb74c824..b6385e50e 100644 --- a/.github/workflows/ubuntu_arm.yml +++ b/.github/workflows/ubuntu_arm.yml @@ -17,13 +17,12 @@ jobs: - run: | docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:armhf-bionic + - uses: docker://multiarch/ubuntu-core:arm64-bionic with: args: > bash -c "uname -a && apt update && - apt install sudo && cd /github/workspace && ./scripts/get.sh __local__ && source ~/.xmake/profile && @@ -31,16 +30,16 @@ jobs: export XMAKE_TMPDIR=/tmp && xmake lua -v -D tests/run.lua" - - uses: docker://multiarch/ubuntu-core:arm64-bionic + - uses: docker://multiarch/ubuntu-core:armhf-bionic with: args: > bash -c "uname -a && apt update && - apt install sudo && cd /github/workspace && ./scripts/get.sh __local__ && source ~/.xmake/profile && export XMAKE_ROOT=y && export XMAKE_TMPDIR=/tmp && xmake lua -v -D tests/run.lua" + diff --git a/xmake/actions/config/configfiles.lua b/xmake/actions/config/configfiles.lua index 60a8f47d3..42b7a87ea 100644 --- a/xmake/actions/config/configfiles.lua +++ b/xmake/actions/config/configfiles.lua @@ -173,9 +173,6 @@ function _generate_configfile(srcfile, dstfile, fileinfo, targets) end end - print(variables) - print("os.arch", os.arch()) - -- replace all variables local pattern = fileinfo.pattern or "%${(.-)}" io.gsub(dstfile_tmp, "(" .. pattern .. ")", function(_, variable) -- cgit v1.3.1