name: setup-deps description: "Install Go and Python" runs: using: "composite" steps: - name: "Install bsdtar (libarchive-tools)" shell: bash run: | sudo apt-get update -y sudo apt-get install -y libarchive-tools # Go: Do this first because `Makefile` checks that the `go` version is correct. - name: "Get Go version from builder container" id: step-detect-go shell: bash run: | make "$PWD/build-aux/go-version.txt" echo "go_version=$(cat "$PWD/build-aux/go-version.txt")" >> $GITHUB_OUTPUT - name: "Install Go (${{ steps.step-detect-go.outputs.go_version }})" uses: actions/setup-go@v3 with: go-version: "${{ steps.step-detect-go.outputs.go_version }}" # Python - name: "Get Python version from builder container" id: step-detect-py shell: bash run: | make "$PWD/build-aux/py-version.txt" echo "py_version=$(cat "$PWD/build-aux/py-version.txt")" >> $GITHUB_OUTPUT - name: "Install Py (${{ steps.step-detect-py.outputs.py_version }})" uses: actions/setup-python@v4 with: python-version: "${{ steps.step-detect-py.outputs.py_version }}" - name: "Install Python requirements with pip" shell: bash run: python -m pip install awscli packaging