Skip to content

Commit

Permalink
wip 1719879567
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Heath <[email protected]>
  • Loading branch information
Jason Heath committed Jul 2, 2024
1 parent ec7e566 commit 1055496
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/hab-pkg-build-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,50 +110,42 @@ jobs:
# - don't have a habitat-dev plan directory
# - have architecture specific plan directories
arch-target-packages:
name: ${{matrix.components}} ${{matrix.arches}} hab pkg (plan file)
needs: windows-pre-build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
#os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest]
channel: [unstable]
components: [builder-worker]
# subdir: [x86_64-linux, x86_64-windows]
subdir: [x86_64-linux, x86_64-linux-kernel2, x86_64-windows]
# exclude:
# - os: ubuntu-latest
# subdir: x86_64-windows
# - os: windows-latest
# subdir: x86_64-linux
# - os: windows-latest
# subdir: x86_64-linux-kernel2
arches: [x86_64-linux, x86_64-linux-kernel2, x86_64-windows]
runs-on: ${{matrix.os}}
steps:

- name: Checkout
uses: actions/checkout@v4

- if: ${{ matrix.os == 'ubuntu-latest' && matrix.subdir != 'x86_64-windows' }}
- if: ${{ matrix.os == 'ubuntu-latest' && matrix.arches != 'x86_64-windows' }}
name: Install Habitat
uses: ./.github/actions/hab-install-linux
- if: ${{ matrix.os == 'windows-latest' && matrix.subdir == 'x86_64-windows' }}
- if: ${{ matrix.os == 'windows-latest' && matrix.arches == 'x86_64-windows' }}
name: Install Habitat
uses: ./.github/actions/hab-install-windows

- if: ${{ matrix.os == 'ubuntu-latest' && matrix.subdir != 'x86_64-windows' }}
- if: ${{ matrix.os == 'ubuntu-latest' && matrix.arches != 'x86_64-windows' }}
name: Build and Upload Habitat Package
uses: ./.github/actions/hab-pkg-build-and-upload-linux
with:
hab-auth-token: ${{ env.HAB_AUTH_TOKEN }}
hab-origin: ${{ env.HAB_ORIGIN }}
bldr-component: components/${{matrix.components}}/habitat/${{matrix.subdir}}
- if: ${{ matrix.os == 'windows-latest' && matrix.subdir == 'x86_64-windows' }}
bldr-component: components/${{matrix.components}}/habitat/${{matrix.arches}}
- if: ${{ matrix.os == 'windows-latest' && matrix.arches == 'x86_64-windows' }}
name: Build and Upload Habitat Package
uses: ./.github/actions/hab-pkg-build-and-upload-windows
with:
hab-auth-token: ${{ env.HAB_AUTH_TOKEN }}
hab-origin: ${{ env.HAB_ORIGIN }}
bldr-component: components/${{matrix.components}}/habitat/${{matrix.subdir}}
bldr-component: components/${{matrix.components}}/habitat/${{matrix.arches}}
app-version: ${{ needs.pre-build.outputs.app_version }}
build-date-time: ${{ needs.pre-build.outputs.date }}

Expand Down Expand Up @@ -194,7 +186,7 @@ jobs:
# bldr-component: components/${{matrix.components}}/habitat-dev


# JAH: rename subdir
# JAH: rename arches
# JAH: trigger appropriately
# JAH: Set the hab_auth_token more appropriately
# JAH: stop using jasonheath origin
Expand Down

0 comments on commit 1055496

Please sign in to comment.