Add .github/workflows/build_test.yml
Some checks failed
Build XMRig / xmrig-linux-static-x64 (push) Has been cancelled
Build XMRig Test / xmrig-linux-static-x64-test (push) Failing after 4s

This commit is contained in:
Liam Chan 2024-12-19 23:04:52 -05:00
parent 1318dbad46
commit 0540ee0201

33
.github/workflows/build_test.yml vendored Normal file
View File

@ -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