Skip to content

Commit

Permalink
build as described in README.md, albeit in 2 steps
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor committed Dec 2, 2024
1 parent 29533e8 commit 79b5533
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build_readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Test Docker on GitHub Actions

on:
workflow_dispatch:
inputs:
message:
description: 'Build as described in README.md'
push:
branches:
- 'tudor/feat-docker-action'

jobs:
build_readme:
runs-on: ubuntu-latest
services:
docker:
image: docker:dind
options: --privileged
volumes:
- shared-volume:/wasm_out
container:
image: node:20
volumes:
- shared-volume:/wasm_out
steps:
- name: Install Docker
run: |
apt-get update
apt-get install -y docker.io
- name: List wasm output dir
run: |
ls /wasm_out
- name: Clear wasm output dir
run: |
rm -rf /wasm_out/*
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Checkout
uses: actions/checkout@v4

- name: Build wasm
env:
VOL: shared-volume
run: |
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 ./packages/pglite/
- name: Build ts
run: |
pnpm install
pnpm ts:build

0 comments on commit 79b5533

Please sign in to comment.