-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
35 lines (31 loc) · 1.08 KB
/
action.yml
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
inputs:
script:
description: "Script to be passed to the docker image"
required: true
runs:
using: "composite"
steps:
- name: Pull docker image
run: |-
docker pull "ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)"
shell: bash
- name: Fix permissions
run: |-
sudo chown -R $(id -u):$(id -g) ${{ github.workspace }}
shell: bash
- name: Run script
run: |-
docker run --rm \
-v ${{ github.workspace }}:/github/workspace/:delegated \
-e EM_CACHE=/github/workspace/.emscripten_cache \
-e YARN_CACHE_FOLDER=/github/workspace/.yarn_cache \
-e CARGO_HOME=/github/workspace/.cargo \
-e CCACHE_DIR=/github/workspace/.ccache \
-e CCACHE_BASEDIR=/github/workspace \
"ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)" \
bash -c "${{ inputs.script }}"
shell: bash
- name: Fix permissions
run: |-
sudo chown -R $(id -u):$(id -g) ${{ github.workspace }}
shell: bash