Skip to content

Commit

Permalink
Update 20230930.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adhu2018 committed Oct 1, 2023
1 parent 65cfc79 commit 8b9a7bd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions study/20230930.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ su runner
```shell
./config.sh --url https://github.com/xxx/xxx --token xxx
```
如果有多个不同平台的 runner ,可以在配置 runner 时,在名称中加上标志性关键词,方便在 workflows 文件中区分并进行针对性操作

## 运行 runner
```shell
Expand All @@ -127,6 +128,15 @@ su runner
cp aapt2 ${i}
done
```
如果有多个不同平台的 runner ,可以在配置 runner 时,在名称中加上 termux 字眼
```
- name: do sth 1
if: contains(runner.name, 'termux')
run: echo "正运行在带有 termux 字眼的 runner 中"
- name: do sth 2
if: ${{ !contains(runner.name, 'termux')}}
run: echo "正运行在不带有 termux 字眼的 runner 中"
```
另外, gradle 不需要 daemon ,对于持续构建的场景可能会出现其他问题
## 修改 gradle.properties
Expand Down

0 comments on commit 8b9a7bd

Please sign in to comment.