-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a69e139
commit 51a22ad
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,3 +137,34 @@ jobs: | |
COMPILER_NIX_NAME=${{ inputs.compiler-nix-name }} | ||
MINIMAL=${{ inputs.minimal }} | ||
IOG=${{ inputs.iog }} | ||
codespace-download: | ||
env: | ||
IMAGE_NAME: input-output-hk/devx-devcontainer | ||
needs: codespace-upload | ||
permissions: | ||
packages: write | ||
runs-on: ubuntu-latest | ||
# We want a GitHub Codespace image for each combination of devx developer shell option. | ||
# But, since the purpose of GitHub Codespace is to serve a complete development environment, | ||
# the user is likely to always expect HLS (I don't see the point otherwise). | ||
# Therefore, it doesn't seem useful to build an image on the `-minimal` flavor (without HLS), | ||
# or the `-static` one (especially since the latter currently requires `-minimal` to work). | ||
# Likely, we consider using `-iog` as the default and do not generate other images. | ||
# Then the user choices left would be between native, `-windows` or `-js` target platforms, | ||
# and the GHC version (currently `ghc810` and `ghc96`). | ||
if: ${{ contains(fromJSON('["x86_64-linux", "aarch64-linux"]'), inputs.platform) && contains(fromJson('["","-windows","-js"]'), inputs.target-platform) && contains(fromJson('["ghc810","ghc96"]'), inputs.compiler-nix-name) && !inputs.minimal && inputs.iog }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run test command inside the Dev Container | ||
run: docker run --rm ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.platform }}.${{ inputs.compiler-nix-name }}${{ inputs.target-platform }}-iog \ | ||
/bin/bash -c "cabal update && cabal unpack hello && cd hello-* && cabal build" |