-
Notifications
You must be signed in to change notification settings - Fork 0
Rename repo to sqlite-web and add workflows #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2a0e60c
9028861
5a86836
89545e3
e06bb2f
46a1afd
c3df1a9
7333bb6
337ce23
63b684e
49029c5
a129366
81e3023
6ac51fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,119 @@ | ||||||||||||||||||||||||||||||||||||||||||
| name: NPM Packages Release | ||||||||||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||
| release: | ||||||||||||||||||||||||||||||||||||||||||
| if: ${{ github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'NPM Package Release') }} | ||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||||||||||||||||||||||
| id-token: write | ||||||||||||||||||||||||||||||||||||||||||
| contents: write | ||||||||||||||||||||||||||||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| outputs: | ||||||||||||||||||||||||||||||||||||||||||
| version: ${{ env.NEW_VERSION }} | ||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| ssh-key: ${{ secrets.PUBLISH_PRIVATE_KEY }} | ||||||||||||||||||||||||||||||||||||||||||
| submodules: recursive | ||||||||||||||||||||||||||||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - uses: DeterminateSystems/nix-installer-action@main | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| determinate: true | ||||||||||||||||||||||||||||||||||||||||||
| - uses: DeterminateSystems/flakehub-cache-action@main | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Install NodeJS v22 | ||||||||||||||||||||||||||||||||||||||||||
| uses: actions/setup-node@v4 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| node-version: 22 | ||||||||||||||||||||||||||||||||||||||||||
| cache: "npm" | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - run: nix develop -c build-submodules | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| - run: nix develop -c local-bundle | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Test full integration | ||||||||||||||||||||||||||||||||||||||||||
| run: nix develop -c test-full-integration | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Git Config | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| git config --global user.email "${{ secrets.CI_GIT_EMAIL }}" | ||||||||||||||||||||||||||||||||||||||||||
| git config --global user.name "${{ secrets.CI_GIT_USER }}" | ||||||||||||||||||||||||||||||||||||||||||
| # get hash of latest published pkgs from npm and concat them | ||||||||||||||||||||||||||||||||||||||||||
| - name: Get Old Hash | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| OLD_HASH=$(npm view @rainlanguage/sqlite-web@latest dist.shasum 2>/dev/null || echo "none") | ||||||||||||||||||||||||||||||||||||||||||
| echo "OLD_HASH=$OLD_HASH" >> $GITHUB_ENV | ||||||||||||||||||||||||||||||||||||||||||
| echo "old hash: $OLD_HASH" | ||||||||||||||||||||||||||||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| # Build the package and calc hash | ||||||||||||||||||||||||||||||||||||||||||
| - name: Build and Get New Hash | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| nix develop -c local-bundle | ||||||||||||||||||||||||||||||||||||||||||
| NEW_HASH=$(cd pkg && npm pack --silent | xargs shasum | cut -c1-40) | ||||||||||||||||||||||||||||||||||||||||||
| echo "NEW_HASH=$NEW_HASH" >> $GITHUB_ENV | ||||||||||||||||||||||||||||||||||||||||||
| echo "new hash: $NEW_HASH" | ||||||||||||||||||||||||||||||||||||||||||
| rm -f pkg/*.tgz | ||||||||||||||||||||||||||||||||||||||||||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| # from here on, we'll skip if OLD_HASH and NEW_HASH are the same (ie no publish) | ||||||||||||||||||||||||||||||||||||||||||
| # this means we need to skip every step by using an if statement. | ||||||||||||||||||||||||||||||||||||||||||
| # set npm version in pkg directory | ||||||||||||||||||||||||||||||||||||||||||
| - name: Set Version | ||||||||||||||||||||||||||||||||||||||||||
| if: ${{ env.OLD_HASH != env.NEW_HASH }} | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| NEW_VERSION=$(npm version prerelease --preid alpha --no-git-tag-version) | ||||||||||||||||||||||||||||||||||||||||||
| echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV | ||||||||||||||||||||||||||||||||||||||||||
| # Commit changes and tag | ||||||||||||||||||||||||||||||||||||||||||
| - name: Commit And Tag | ||||||||||||||||||||||||||||||||||||||||||
| if: ${{ env.OLD_HASH != env.NEW_HASH }} | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| git add "pkg/package.json" | ||||||||||||||||||||||||||||||||||||||||||
| git commit -m "NPM Package Release v${{ env.NEW_VERSION }}" | ||||||||||||||||||||||||||||||||||||||||||
| git tag npm-v${{ env.NEW_VERSION }} | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+72
to
+78
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fine as we use this workflow in other repos There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @findolor, understood! Thanks for the clarification - I'll note that this workflow pattern works well for your organization's established practices. ✏️ Learnings added
findolor marked this conversation as resolved.
Show resolved
Hide resolved
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| # Push the commit to remote | ||||||||||||||||||||||||||||||||||||||||||
| - name: Push Changes To Remote | ||||||||||||||||||||||||||||||||||||||||||
| if: ${{ env.OLD_HASH != env.NEW_HASH }} | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| git push origin | ||||||||||||||||||||||||||||||||||||||||||
| git push -u origin npm-v${{ env.NEW_VERSION }} | ||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||||||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # Create sqlite-web npm package tarball | ||||||||||||||||||||||||||||||||||||||||||
| - name: Create sqlite-web NPM Package Tarball | ||||||||||||||||||||||||||||||||||||||||||
| if: ${{ env.OLD_HASH != env.NEW_HASH }} | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| cd pkg | ||||||||||||||||||||||||||||||||||||||||||
| echo "NPM_PACKAGE=$(npm pack --silent)" >> $GITHUB_ENV | ||||||||||||||||||||||||||||||||||||||||||
| - name: Rename sqlite-web NPM Package Tarball | ||||||||||||||||||||||||||||||||||||||||||
| if: ${{ env.OLD_HASH != env.NEW_HASH }} | ||||||||||||||||||||||||||||||||||||||||||
| run: mv pkg/${{ env.NPM_PACKAGE }} sqlite_web_npm_package_${{ env.NEW_VERSION }}.tgz | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+88
to
+98
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Quote env and paths when renaming and publishing the tarball. - name: Create sqlite-web NPM Package Tarball
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: |
cd pkg
- echo "NPM_PACKAGE=$(npm pack --silent)" >> $GITHUB_ENV
+ echo "NPM_PACKAGE=$(npm pack --silent)" >> "$GITHUB_ENV"
- name: Rename sqlite-web NPM Package Tarball
if: ${{ env.OLD_HASH != env.NEW_HASH }}
- run: mv pkg/${{ env.NPM_PACKAGE }} sqlite_web_npm_package_${{ env.NEW_VERSION }}.tgz
+ run: mv "pkg/${{ env.NPM_PACKAGE }}" "sqlite_web_npm_package_${{ env.NEW_VERSION }}.tgz"📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.7)96-96: shellcheck reported issue in this script: SC2086:info:2:44: Double quote to prevent globbing and word splitting (shellcheck) 🤖 Prompt for AI Agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fine i've picked this workflow from a working project There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @findolor, understood! I can see from your previous feedback that you prefer maintaining consistency with existing npm-release workflows across your repositories, and this standardized pattern has been working well for the rainlanguage organization. Thanks for the clarification - I'll keep this in mind for future reviews. ✏️ Learnings added
🧠 Learnings usedThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick: ShellCheck would also be complaining about lack of quotes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||||||||||||||
| # publish sqlite-web pkg to npm | ||||||||||||||||||||||||||||||||||||||||||
| - name: Publish sqlite-web pkg To NPM | ||||||||||||||||||||||||||||||||||||||||||
| if: ${{ env.OLD_HASH != env.NEW_HASH }} | ||||||||||||||||||||||||||||||||||||||||||
| uses: JS-DevTools/npm-publish@v3 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| token: ${{ secrets.NPM_TOKEN }} | ||||||||||||||||||||||||||||||||||||||||||
| access: public | ||||||||||||||||||||||||||||||||||||||||||
| package: sqlite_web_npm_package_${{ env.NEW_VERSION }}.tgz | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # Create gitHub release with tarballs | ||||||||||||||||||||||||||||||||||||||||||
| - name: Create GitHub Release with sqlite-web pkg | ||||||||||||||||||||||||||||||||||||||||||
| if: ${{ env.OLD_HASH != env.NEW_HASH }} | ||||||||||||||||||||||||||||||||||||||||||
| id: gh_release | ||||||||||||||||||||||||||||||||||||||||||
| uses: softprops/action-gh-release@v2 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| tag_name: npm-v${{ env.NEW_VERSION }} | ||||||||||||||||||||||||||||||||||||||||||
| name: NPM Package Release v${{ env.NEW_VERSION }} | ||||||||||||||||||||||||||||||||||||||||||
| files: | | ||||||||||||||||||||||||||||||||||||||||||
| sqlite_web_npm_package_${{ env.NEW_VERSION }}.tgz | ||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||||||||||||||||||||
0xgleb marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,53 @@ | ||||||||||||||||
| name: Test SDK UI Logic | ||||||||||||||||
| on: [push] | ||||||||||||||||
0xgleb marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||
|
|
||||||||||||||||
| concurrency: | ||||||||||||||||
| group: ${{ github.ref }}-ui | ||||||||||||||||
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||
|
|
||||||||||||||||
| jobs: | ||||||||||||||||
| test: | ||||||||||||||||
| permissions: | ||||||||||||||||
| id-token: write | ||||||||||||||||
| contents: read | ||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||
|
Comment on lines
+10
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Reduce permissions to least privilege (drop id-token). test:
- permissions:
- id-token: write
- contents: read
+ permissions:
+ contents: read📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @findolor, understood! I'll note that you're comfortable with the current permissions configuration. |
||||||||||||||||
| env: | ||||||||||||||||
| COMMIT_SHA: ${{ github.sha }} | ||||||||||||||||
| steps: | ||||||||||||||||
|
Comment on lines
+14
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Remove or use unused env COMMIT_SHA. - env:
- COMMIT_SHA: ${{ github.sha }}
+ # env: (unused)
+ # COMMIT_SHA: ${{ github.sha }}🤖 Prompt for AI Agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @findolor Thanks for the clarification. I'll note that you're comfortable keeping the unused |
||||||||||||||||
| - uses: actions/checkout@v2 | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update checkout action to v4. - - uses: actions/checkout@v2
+ - uses: actions/checkout@v4📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.7)17-17: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🤖 Prompt for AI Agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @findolor Understood! I'll note your preference to keep the current checkout action version. 🧠 Learnings used |
||||||||||||||||
| with: | ||||||||||||||||
| submodules: recursive | ||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||
|
|
||||||||||||||||
| - uses: nixbuild/nix-quick-install-action@v30 | ||||||||||||||||
| with: | ||||||||||||||||
| nix_conf: | | ||||||||||||||||
| keep-env-derivations = true | ||||||||||||||||
| keep-outputs = true | ||||||||||||||||
| - name: Restore and save Nix store | ||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||
| uses: nix-community/cache-nix-action@v6 | ||||||||||||||||
| with: | ||||||||||||||||
| # restore and save a cache using this key | ||||||||||||||||
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | ||||||||||||||||
| # if there's no cache hit, restore a cache by this prefix | ||||||||||||||||
| restore-prefixes-first-match: nix-${{ runner.os }}- | ||||||||||||||||
| # collect garbage until the Nix store size (in bytes) is at most this number | ||||||||||||||||
| # before trying to save a new cache | ||||||||||||||||
| # 1G = 1073741824 | ||||||||||||||||
| gc-max-store-size-linux: 1G | ||||||||||||||||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||
|
|
||||||||||||||||
| - run: nix develop -c build-submodules | ||||||||||||||||
|
|
||||||||||||||||
| - run: nix develop -c local-bundle | ||||||||||||||||
|
|
||||||||||||||||
| - name: Install Playwright browsers with dependencies | ||||||||||||||||
| run: | | ||||||||||||||||
| cd svelte-test | ||||||||||||||||
| npx playwright install --with-deps | ||||||||||||||||
|
|
||||||||||||||||
| - run: nix develop -c test-ui | ||||||||||||||||
|
|
||||||||||||||||
| - name: Frontend linting and formatting | ||||||||||||||||
| run: | | ||||||||||||||||
| cd svelte-test | ||||||||||||||||
| npm run lint-format-check | ||||||||||||||||
|
Comment on lines
+50
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure Node is set up and dependencies installed before lint/format. This step runs outside Nix; without Node setup and npm ci the scripts will likely fail. - name: Frontend linting and formatting
- run: |
- cd svelte-test
- npm run lint-format-check
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: "npm"
+ cache-dependency-path: "svelte-test/package-lock.json"
+ - name: Install deps and run lint/format
+ run: |
+ cd svelte-test
+ npm ci
+ npm run lint-format-check🧰 Tools🪛 YAMLlint (1.37.1)[error] 44-44: no new line character at the end of file (new-line-at-end-of-file) 🤖 Prompt for AI Agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @findolor, understood! I'll note that the current workflow setup works for your use case.
0xgleb marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: Test WASM | ||
| on: [push] | ||
0xgleb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
0xgleb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| concurrency: | ||
| group: ${{ github.ref }}-wasm | ||
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| test: | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| runs-on: ubuntu-latest | ||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| env: | ||
| COMMIT_SHA: ${{ github.sha }} | ||
| steps: | ||
|
Comment on lines
+14
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Remove or use unused env COMMIT_SHA. It’s defined but never referenced. Prefer removing to keep the job tidy. - env:
- COMMIT_SHA: ${{ github.sha }}
+ # env: (unused)
+ # COMMIT_SHA: ${{ github.sha }}🤖 Prompt for AI Agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @findolor, understood! I'll respect your decision to keep the
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - uses: actions/checkout@v2 | ||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| submodules: recursive | ||
| fetch-depth: 0 | ||
|
|
||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - uses: nixbuild/nix-quick-install-action@v30 | ||
| with: | ||
| nix_conf: | | ||
| keep-env-derivations = true | ||
| keep-outputs = true | ||
| - name: Restore and save Nix store | ||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| uses: nix-community/cache-nix-action@v6 | ||
| with: | ||
| # restore and save a cache using this key | ||
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | ||
| # if there's no cache hit, restore a cache by this prefix | ||
| restore-prefixes-first-match: nix-${{ runner.os }}- | ||
| # collect garbage until the Nix store size (in bytes) is at most this number | ||
| # before trying to save a new cache | ||
| # 1G = 1073741824 | ||
| gc-max-store-size-linux: 1G | ||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - run: nix develop -c build-submodules | ||
|
|
||
| - run: nix develop -c local-bundle | ||
|
|
||
| - run: nix develop -c rainix-rs-static | ||
|
|
||
| - run: nix develop -c test-wasm | ||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /target | ||
| /pkg | ||
| # Generated files from bundle.sh | ||
| packages/sqlite-worker/src/embedded_worker.js | ||
| pkg/sqlite_worker_bg.wasm.b64 | ||
| packages/sqlite-web/src/embedded_worker.js | ||
| pkg/sqlite_web_bg.wasm.b64 | ||
findolor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.