diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 7c53cde4..c8850efb 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -138,23 +138,20 @@ jobs: path: | dist/*/*${{ matrix.platform }}.whl - # This only uploads the arm64 wheels for Apple M1 silicon usage + # This only uploads the arm64 wheels for Apple M1 Silicon usage build-macos-arm64: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [macos-10.15, macos-11.0] - name: "build-${{ matrix.os }} - arm64)" + name: "build-${{ matrix.os }} - arm64" steps: - uses: actions/checkout@v2 - name: Install pre-requisites run: | - # brew install gnu-sed postgresql@13 brew install postgresql@13 brew services start postgresql - # gsed -i "s/^setup(name=\"psycopg2\"/setup(name=\"psycopg2-binary\"/" setup.py - # git diff # This builds all possible Python versions (currently, 3.8 to 3.10) - uses: pypa/cibuildwheel@v2.1.1 @@ -163,18 +160,9 @@ jobs: # Read about options here https://cibuildwheel.readthedocs.io/en/stable/options env: CIBW_ARCHS: arm64 + # This allows substitution within setup.py PACKAGE_NAME: psycopg2-binary - - name: Some tests - run: | - git diff - ls -l dist - pip install psycopg2-binary --no-index -f dist/ - python -c "import psycopg2; print(psycopg2.__version__)" - python -c "import psycopg2; print(psycopg2.__libpq_version__)" - python -c "import psycopg2; print(psycopg2.extensions.libpq_version())" - python -c "import tests; tests.unittest.main(defaultTest='tests.test_suite')" - - name: Upload artifacts uses: actions/upload-artifact@v2 with: