From e62001530fbd6d8d44f161e89d7d90c8ab62b8f4 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Date: Sat, 23 Mar 2024 07:37:38 +0800 Subject: [PATCH] build: remove preview hacks (#86) --- .github/workflows/release.yml | 49 ----------------------------------- 1 file changed, 49 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9166f855..a19502280 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,12 +76,6 @@ jobs: with: submodules: recursive if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') - - uses: actions/checkout@v4 - with: - repository: Enter-tainer/typst-preview - path: external/typst-preview - ref: preview-disable-frontend - if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.4 if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') @@ -90,27 +84,6 @@ jobs: with: node-version: 16 if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') - - name: Hack typst-preview - run: | - mv src/main.rs src/main.rsx - working-directory: ./external/typst-preview - if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') - - name: Build typst-dom - run: | - yarn - yarn build - working-directory: ./external/typst-preview/addons/typst-dom - if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') - - name: Build frontend - run: yarn - working-directory: ./external/typst-preview/addons/frontend - if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') - - name: Build typst-preview - run: | - yarn - yarn run compile - working-directory: ./external/typst-preview/addons/vscode - if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') - name: Install deps run: yarn install if: (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true') @@ -225,28 +198,6 @@ jobs: submodules: recursive - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.4 - - uses: actions/checkout@v4 - with: - repository: Enter-tainer/typst-preview - path: external/typst-preview - ref: preview-disable-frontend - - name: Hack typst-preview - run: | - mv src/main.rs src/main.rsx - working-directory: ./external/typst-preview - - name: Build typst-dom - run: | - yarn - yarn build - working-directory: ./external/typst-preview/addons/typst-dom - - name: Build frontend - run: yarn - working-directory: ./external/typst-preview/addons/frontend - - name: Build typst-preview - run: | - yarn - yarn run compile - working-directory: ./external/typst-preview/addons/vscode - name: Install deps run: yarn install - name: Build vscode extension