-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
43 lines (43 loc) · 1.38 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
36
37
38
39
40
41
42
43
name: 'Stratisd Fedora Composite Action'
description: 'Execute Fedora CI tasks in container'
inputs:
image:
description: "Container image to use"
required: true
components:
description: "Cargo components to use"
required: true
default: "cargo"
toolchain:
description: "Version of the rust toolchain to use"
required: true
task:
description: "The test task to run in the container"
required: true
deps:
description: "Command to install dependencies in the container"
required: true
runs:
using: "composite"
steps:
- uses: dtolnay/rust-toolchain@master
with:
components: ${{ inputs.components }}
toolchain: ${{ inputs.toolchain }}
override: true
- uses: addnab/docker-run-action@v3
with:
image: ${{ inputs.image }}
options: --privileged -v /dev:/dev -v /home:/home -v /sys:/sys -v ${{ github.workspace }}:/work
shell: bash
run: |
export PATH="$PATH:/home/runner/.cargo/bin/"
export DEBIAN_FRONTEND=noninteractive
${{ inputs.deps }}
rustup toolchain install ${{ inputs.toolchain }} --component ${{ inputs.components }}
rustup override set ${{ inputs.toolchain }}
cd /work
make -f Makefile build-all
make -f Makefile install
coproc /usr/lib/systemd/systemd-udevd
${{ inputs.task }}