Skip to content

Commit

Permalink
check runner on github
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor committed Dec 2, 2024
1 parent 92e71db commit 0e870b4
Showing 1 changed file with 32 additions and 19 deletions.
51 changes: 32 additions & 19 deletions .github/workflows/build_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,44 @@ jobs:
uses: pnpm/action-setup@v4
with:
version: 9

- name: Checkout
run: |
git clone --single-branch --branch tudor/feat-docker-action https://github.com/electric-sql/pglite.git ${{ runner.temp }}/src
# - name: Checkout
# uses: actions/checkout@v4
uses: actions/checkout@v4

- name: Build wasm
- name: Docker volume test
env:
VOL: shared-volume
VOL: shared-volume
run: |
cd ${{ runner.temp }}/src
ls $(pwd)
pnpm wasm:build
echo '123' > /wasm_out/test.txt
docker run --rm -v $VOL:/data alpine sh -c "ls /data && cat /data/test.txt"
- name: List wasm output dir after build
- name: Read output
run: |
ls /wasm_out
cat /data/test.txt
# - name: Checkout
# run: |
# git clone --single-branch --branch tudor/feat-docker-action https://github.com/electric-sql/pglite.git ${{ runner.temp }}/src

# - name: Build wasm
# env:
# VOL: shared-volume
# run: |
# cd ${{ runner.temp }}/src
# ls $(pwd)
# pnpm wasm:build

# - name: List wasm output dir after build
# run: |
# ls /wasm_out

- name: Move release wasm files to pglite dir
run: |
mv /wasm_out/release /src/packages/pglite/
# - name: Move release wasm files to pglite dir
# run: |
# mv /wasm_out/release /src/packages/pglite/

- name: Build ts
run: |
cd /src
pnpm install
pnpm ts:build
# - name: Build ts
# run: |
# cd /src
# pnpm install
# pnpm ts:build

0 comments on commit 0e870b4

Please sign in to comment.