Add .github/workflows/build_test.yml
This commit is contained in:
parent
1318dbad46
commit
0540ee0201
33
.github/workflows/build_test.yml
vendored
Normal file
33
.github/workflows/build_test.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user