From f9ccee7cec0f2aa0c99411496ba332cd929cee15 Mon Sep 17 00:00:00 2001 From: Jericho Tolentino <68654047+jericht@users.noreply.github.com> Date: Wed, 20 Sep 2023 21:34:10 +0000 Subject: [PATCH] chore: add mac and windows to github workflows Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com> --- .github/workflows/reuse_python_build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reuse_python_build.yml b/.github/workflows/reuse_python_build.yml index 2d70bf9..468d7b9 100644 --- a/.github/workflows/reuse_python_build.yml +++ b/.github/workflows/reuse_python_build.yml @@ -9,13 +9,14 @@ on: jobs: Python: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} permissions: id-token: write contents: read strategy: matrix: python-version: ['3.9', '3.10', '3.11'] + os: [ubuntu-latest, windows-latest, macOS-latest] env: PYTHON: ${{ matrix.python-version }} CODEARTIFACT_REGION: "us-west-2" @@ -25,7 +26,7 @@ jobs: steps: - uses: actions/checkout@v4 if: ${{ !inputs.branch }} - + - uses: actions/checkout@v4 if: ${{ inputs.branch }} with: @@ -36,7 +37,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -45,6 +46,7 @@ jobs: mask-aws-account-id: true - name: Install Hatch + shell: bash run: | CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain ${{ secrets.CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.CODEARTIFACT_ACCOUNT_ID }} --query authorizationToken --output text --region us-west-2) echo "::add-mask::$CODEARTIFACT_AUTH_TOKEN"