From 0540ee02012a7e7f5f0842e1724baadae8eea132 Mon Sep 17 00:00:00 2001 From: Liam Chan Date: Thu, 19 Dec 2024 23:04:52 -0500 Subject: [PATCH] Add .github/workflows/build_test.yml --- .github/workflows/build_test.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build_test.yml diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..6a973f0 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,33 @@ +name: Build XMRig Test + +on: + push: + branches: + - main + +jobs: + xmrig-linux-static-x64-test: + runs-on: ubuntu-latest + container: + image: alpine:latest + + steps: + - name: Patch Alpine container into actions runner environment + if: runner.os == 'Linux' + run: | + apk add nodejs + sed -i "s:ID=alpine:ID=NotpineForGHA:" /etc/os-release + cd /host/home/runner/runners/*/externals/ + rm -rf node20/* + mkdir node20/bin + ln -s /usr/bin/node node20/bin/node + shell: sh # No bash in Alpine by default + + - run: | + touch testfile + + - name: Archive artifacts + uses: christopherhx/gitea-upload-artifact@v4 + with: + name: xmrig-linux-static-x64 + path: testfile