-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.49 KB
/
ci_workflow.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
45
46
47
48
49
# Github workflow runner instructions using customized actions
name: Multi-Arch GitHub Actions
on: [ push ]
jobs:
runner_details:
runs-on: ubuntu-20.04
name: Runner Details
steps:
########## CHECK OUT REPO AND PRINT REPO INFO #######
- name: Checkout
uses: actions/checkout@v3
- name: Intro to job runner
run: |
echo "job runner details "
echo "Event: ${{ github.event_name }}"
echo "os: ${{ runner.os }} server."
echo "Repository: ${{ github.repository }}:${{ github.ref_name }}."
ls ${{ github.workspace }}
run_simple_loop:
runs-on: ubuntu-20.04
name: Run Simple Loop (No Custom Action)
steps:
########## CHECK OUT REPO AND DOWNLOAD PACKAGES AND RUN CODE #######
- name: Checkout
uses: actions/checkout@v3
- name: Install python packages
run: |
pip install pyfiglet
pip install -r requirements.txt
pyfiglet Multi-Arch Build with GitHub Actions
- name: Run Code
run: python simple_loop.py
run_simple_loop_action:
runs-on: ubuntu-20.04
name: Run Custom Action
steps:
########## CHECK OUT REPO AND DOWNLOAD PACKAGES AND RUN CODE WITH CUSTOM ACTION #######
- name: Checkout
uses: actions/checkout@v3
- name: Install python packages
uses: ./.github/actions/install-run-code
with:
project_name:
Multi-Arch Build with GitHub Actions [With Custom Action]