...
1name: setup-deps
2description: "Install Go and Python"
3
4runs:
5 using: "composite"
6 steps:
7 - name: "Install bsdtar (libarchive-tools)"
8 shell: bash
9 run: |
10 sudo apt-get update -y
11 sudo apt-get install -y libarchive-tools
12 # Go: Do this first because `Makefile` checks that the `go` version is correct.
13 - name: "Get Go version from builder container"
14 id: step-detect-go
15 shell: bash
16 run: |
17 make "$PWD/build-aux/go-version.txt"
18 echo "go_version=$(cat "$PWD/build-aux/go-version.txt")" >> $GITHUB_OUTPUT
19 - name: "Install Go (${{ steps.step-detect-go.outputs.go_version }})"
20 uses: actions/setup-go@v3
21 with:
22 go-version: "${{ steps.step-detect-go.outputs.go_version }}"
23 # Python
24 - name: "Get Python version from builder container"
25 id: step-detect-py
26 shell: bash
27 run: |
28 make "$PWD/build-aux/py-version.txt"
29 echo "py_version=$(cat "$PWD/build-aux/py-version.txt")" >> $GITHUB_OUTPUT
30 - name: "Install Py (${{ steps.step-detect-py.outputs.py_version }})"
31 uses: actions/setup-python@v4
32 with:
33 python-version: "${{ steps.step-detect-py.outputs.py_version }}"
34 - name: "Install Python requirements with pip"
35 shell: bash
36 run: python -m pip install awscli packaging
37
View as plain text