-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) · 1.78 KB
/
oocana-python.yml
File metadata and controls
54 lines (52 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: "setup oocana-python action"
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- ".github/workflows/oocana-python.yml"
- "scripts/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
action-test:
runs-on: ubuntu-latest
env:
OVMLAYER_LOG: /tmp/ovmlayer.log
OVMLAYER_REPOSITORY: ${{ vars.OVMLAYER_REPOSITORY || 'ovmlayer-next' }}
OVMLAYER_USE_RUNTIME_SETUP: "true"
steps:
- uses: actions/checkout@v6
- name: Generate GitHub App Token for oomol/${{ env.OVMLAYER_REPOSITORY }}
id: app-token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.OOMOL_DOWNLOADER_APP_ID }}
private-key: ${{ secrets.OOMOL_DOWNLOADER_APP_PRIVATE_KEY }}
owner: oomol
repositories: ${{ env.OVMLAYER_REPOSITORY }}
- uses: oomol/oocana-rust/.github/actions/ovmlayer@main
with:
repository: ${{ env.OVMLAYER_REPOSITORY }}
rootfs: https://github.com/oomol/ovmlayer-rootfs/releases/download/base-rootfs%400.4.0/amd64-rootfs.tar
token: ${{ steps.app-token.outputs.token }}
use-runtime-setup: ${{ env.OVMLAYER_USE_RUNTIME_SETUP }}
- name: setup oocana-python action without layer
uses: ./.github/actions/oocana-python
with:
ref: ${{ github.sha }}
path: "oocana-python"
- name: setup oocana-python action with layer
uses: ./.github/actions/oocana-python
with:
ref: ${{ github.sha }}
create-layer: "true"
path: "oocana-python"
- name: upload log
if: failure()
uses: actions/upload-artifact@v6
with:
name: ovmlayer-log
path: /tmp/ovmlayer.log