Skip to content

Commit

Permalink
Revert "revert container build changes"
Browse files Browse the repository at this point in the history
This reverts commit 23e2469.
  • Loading branch information
csujedihy committed Jun 25, 2023
1 parent 23e2469 commit f2a4059
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-reuse-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,23 @@ jobs:
build-unix-reuse:
name: Build
runs-on: ${{ inputs.os }}
container: ${{ fromJSON('{"ubuntu-20.04":"ghcr.io/microsoft/msquic/linux-build-xcomp:20.04","ubuntu-22.04":"ghcr.io/microsoft/msquic/linux-build-xcomp:22.04"}')[inputs.os] }}
steps:
- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
fetch-depth: 0
- name: Set ownership
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-22.04'
run: |
# this is to fix GIT not liking owner of the checkout dir
chown -R $(id -u):$(id -g) $PWD
- name: Prepare Machine (docker based)
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-22.04'
shell: pwsh
run: scripts/prepare-machine.ps1 -ForOneBranch -InitSubmodules -Tls ${{ inputs.tls }}
- name: Prepare Machine
if: inputs.os == 'macos-12'
shell: pwsh
run: scripts/prepare-machine.ps1 -ForBuild -Tls ${{ inputs.tls }}
- name: Build For Test
Expand All @@ -95,4 +106,4 @@ jobs:
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: ${{ inputs.config }}-${{ inputs.plat }}-${{ inputs.os }}-${{ inputs.arch }}-${{ inputs.tls }}${{ inputs.static }}${{ inputs.clang }}${{ inputs.systemcrypto }}${{ inputs.codecheck }}${{ inputs.sanitize }}${{ inputs.test }}
path: artifacts
path: artifacts

0 comments on commit f2a4059

Please sign in to comment.