diff --git a/.github/workflows/imspy-connector-publish.yml b/.github/workflows/imspy-connector-publish.yml index dd503fd6..85501221 100644 --- a/.github/workflows/imspy-connector-publish.yml +++ b/.github/workflows/imspy-connector-publish.yml @@ -18,10 +18,7 @@ jobs: - os: ubuntu-latest python-version: '3.11' publish: true - - os: ubuntu-latest - python-version: '3.11' target: aarch64-unknown-linux-gnu - publish: true - os: windows-latest python-version: '3.11' publish: true @@ -34,10 +31,18 @@ jobs: target: aarch64-apple-darwin steps: - - uses: actions/checkout@v3 + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python on Ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + sudo add-apt-repository ppa:deadsnakes/ppa + sudo apt-get update + sudo apt-get install -y python3.11 python3.11-venv python3.11-dev python3-pip - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -54,12 +59,13 @@ jobs: override: true target: ${{ matrix.target || '' }} - - name: Install Cross Compilation Tools (Linux ARM64 Only) + - name: Install Cross-Compilation Tools (Linux ARM64 Only) if: matrix.target == 'aarch64-unknown-linux-gnu' run: | - sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu python3.11 python3-pip python3-venv + sudo apt-get update && sudo apt-get install -y \ + gcc-aarch64-linux-gnu - - name: Change to imspy-connector directory + - name: Change to imspy-connector Directory run: cd imspy_connector - name: Clean Cargo Artifacts