wip 1720029999 #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Habitat Packages | |
on: | |
push: | |
# JAH: uncomment to trigger more appropriately once development complete | |
# branches: | |
# - main | |
# release: | |
# types: | |
# - created | |
env: | |
BLDR_URL: 'https://bldr.habitat.sh/' | |
HAB_ORIGIN: 'habitat' | |
HAB_AUTH_TOKEN: ${{ secrets.HAB_AUTH_TOKEN }} | |
HABITAT_VERSION_SET: 'latest' | |
permissions: | |
contents: write | |
jobs: | |
# These components either have a plan.sh file or a habitat plan directory | |
simple-packages: | |
name: ${{matrix.components}} (plan.sh, habitat dir) | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
channel: [unstable] | |
components: [builder-api-proxy, builder-api, builder-datastore, builder-graph, builder-jobsrv, builder-memcached, builder-minio] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout for ${{matrix.components}} | |
uses: actions/checkout@v4 | |
- name: Install Habitat for ${{matrix.components}} | |
uses: ./.github/actions/hab-install-linux | |
with: | |
hab-auth-token: ${{ env.HAB_AUTH_TOKEN }} | |
hab-origin: ${{ env.HAB_ORIGIN }} | |
- name: Build and Upload Habitat Package for ${{matrix.components}} | |
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}} | |
# These components have architecture specific plan directories | |
architecture-packages: | |
name: ${{matrix.components}} ${{matrix.arches}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
channel: [unstable] | |
components: [builder-worker] | |
arches: [x86_64-linux, x86_64-linux-kernel2, x86_64-windows] | |
exclude: | |
- os: ubuntu-latest | |
arches: x86_64-windows | |
- os: windows-latest | |
arches: x86_64-linux | |
- os: windows-latest | |
arches: x86_64-linux-kernel2 | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- if: ${{ matrix.os == 'ubuntu-latest' && matrix.arches != 'x86_64-windows' }} | |
name: Install Habitat | |
uses: ./.github/actions/hab-install-linux | |
with: | |
hab-auth-token: ${{ env.HAB_AUTH_TOKEN }} | |
hab-origin: ${{ env.HAB_ORIGIN }} | |
- if: ${{ matrix.os == 'windows-latest' && matrix.arches == 'x86_64-windows' }} | |
name: Install Habitat | |
uses: ./.github/actions/hab-install-windows | |
with: | |
hab-auth-token: ${{ env.HAB_AUTH_TOKEN }} | |
hab-origin: ${{ env.HAB_ORIGIN }} | |
- 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 }} | |
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 }} | |
bldr-component: components/${{matrix.components}}/habitat/${{matrix.arches}} |