Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed May 22, 2024
1 parent 3452c13 commit 6a23816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 37 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/build-hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
skip-existing: true

binaries:
name: ${{ matrix.job.target }} (${{ matrix.job.os }})
name: Binary ${{ matrix.job.target }} (${{ matrix.job.os }})
needs:
- python-artifacts
runs-on: ${{ matrix.job.os }}
Expand Down Expand Up @@ -514,42 +514,7 @@ jobs:
uses: ./.github/workflows/build-distributions.yml
# This actually does not need the binary jobs but we want to prioritize
# resources for the test jobs therefore this forces these later on
# needs: binaries

test-distributions:
name: Test distribution ${{ matrix.job.target }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
needs:
- distributions-dev
runs-on: ${{ matrix.job.os }}
strategy:
fail-fast: false
matrix:
job:
- target: x86_64-unknown-linux-gnu
os: ubuntu-22.04
- target: x86_64-pc-windows-msvc
os: windows-2022
- target: aarch64-apple-darwin
os: macos-14
- target: x86_64-apple-darwin
os: macos-12

steps:
- name: Download distributions
uses: actions/download-artifact@v4
with:
name: distribution-${{ matrix.job.target }}

- name: Unpack distribution
run: |-
mkdir out
tar xzf hatch-dist-${{ matrix.job.target }}.tar.gz -C out
- name: Try to run
run: >-
./out/python/${{ startsWith(matrix.job.os, 'windows-') && 'Scripts/hatch.exe' || 'bin/hatch' }}
--version
needs: binaries

distributions-release:
name: Build release distributions
Expand Down
2 changes: 2 additions & 0 deletions release/unix/make_scripts_portable.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import sys
import sysconfig
from io import BytesIO
Expand Down

0 comments on commit 6a23816

Please sign in to comment.