-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.32 KB
/
ci.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
44
name: Test actions
on:
push:
branches:
- "**"
workflow_dispatch:
jobs:
binary_test_linuxes:
strategy:
fail-fast: false
matrix:
container:
- centos:7
- ubuntu:18.04
- "quay.io/pypa/manylinux2014_x86_64"
runs-on: "ubuntu-latest"
# container: ${{ matrix.container }}
steps:
- name: "Checkout sources"
uses: "actions/checkout@v4"
with:
fetch-depth: 1
- name: "Upload dummy script"
uses: "actions/upload-artifact@v3"
with:
name: dummy-script
path: dummy_script.sh
- name: "Download dummy script"
uses: "actions/download-artifact@v3"
with:
name: dummy-script
path: ./downloaded_scripts
- name: "Run dummy script"
run: chmod +x ./downloaded_scripts/dummy_script.sh && ./downloaded_scripts/dummy_script.sh
- name: "Run dummy script in container"
run: |
docker run --rm -v $PWD/downloaded_scripts:/scripts ${{ matrix.container }} /bin/bash -c "chmod +x /scripts/dummy_script.sh && /scripts/dummy_script.sh"