Skip to content

Commit

Permalink
revert using buggy userDataFolder option
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Sep 13, 2023
1 parent 8cfbf8d commit 15c2a6c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/build-in-devcontainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ jobs:
repository: ${{ inputs.repo }}
ref: ${{ inputs.sha }}
fetch-depth: 0
path: repo
- name: Check if repo has devcontainer
run: |
if test -f repo/.devcontainer/cuda${{ matrix.cuda }}-${{ matrix.pkgr }}/devcontainer.json; then
if test -f .devcontainer/cuda${{ matrix.cuda }}-${{ matrix.pkgr }}/devcontainer.json; then
echo "HAS_DEVCONTAINER=true" >> "${GITHUB_ENV}";
else
echo "HAS_DEVCONTAINER=false" >> "${GITHUB_ENV}";
Expand All @@ -66,26 +65,17 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '16'
- if: ${{ env.HAS_DEVCONTAINER == 'true' }}
name: Cache devcontainer build files
uses: actions/cache@v3
with:
key: "cuda${{ matrix.cuda }}-${{ matrix.pkgr }}-${{ matrix.arch }}-devcontainer-data"
path: "${{ github.workspace }}/data"
- if: ${{ env.HAS_DEVCONTAINER == 'true' }}
name: Copy devcontainer.json file up one level
run: |
mkdir -p "${{ github.workspace }}/data/empty-folder";
echo "REPOSITORY=$(basename $(pwd))" | tee -a "${GITHUB_ENV}";
cp repo/.devcontainer/cuda${{ matrix.cuda }}-${{ matrix.pkgr }}/devcontainer.json \
repo/.devcontainer/devcontainer.json;
cp .devcontainer/cuda${{ matrix.cuda }}-${{ matrix.pkgr }}/devcontainer.json \
.devcontainer/devcontainer.json;
- if: ${{ env.HAS_DEVCONTAINER == 'true' }}
name: Run build in devcontainer
uses: devcontainers/[email protected]
with:
push: never
subFolder: repo
userDataFolder: "${{ github.workspace }}/data"
env: |
REPOSITORY=${{ env.REPOSITORY }}
SCCACHE_REGION=${{ vars.AWS_REGION }}
Expand Down

0 comments on commit 15c2a6c

Please sign in to comment.