Skip to content

Commit

Permalink
build: bump typst.ts to v0.5.0-rc7
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Aug 25, 2024
1 parent 53077b4 commit 054b802
Show file tree
Hide file tree
Showing 18 changed files with 1,279 additions and 1,069 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/release_with_artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ jobs:
shell: pwsh
run: |
cargo build --release --manifest-path cli/Cargo.toml --target ${{ matrix.rust-target }} --bin shiroa
cargo build --profile release-stripped --manifest-path cli/Cargo.toml --target ${{ matrix.rust-target }} --bin shiroa
cargo build --profile relwithdebinfo --manifest-path cli/Cargo.toml --target ${{ matrix.rust-target }} --bin shiroa
- uses: actions/upload-artifact@v3
with:
name: shiroa-${{ env.target }}
path: target/${{ matrix.rust-target }}/release-stripped/shiroa*
path: target/${{ matrix.rust-target }}/release/shiroa*
if-no-files-found: error
- uses: actions/upload-artifact@v3
with:
name: shiroa-${{ env.target }}-relwithdebuginfo
path: target/${{ matrix.rust-target }}/release/shiroa*
path: target/${{ matrix.rust-target }}/relwithdebinfo/shiroa*
if-no-files-found: error

build_linux_riscv64:
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
run: |
mkdir -p frontend/node_modules
docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project shiroa/riscv64:latest cargo build --manifest-path cli/Cargo.toml --release --target ${CARGO_TARGET} --bin shiroa
docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project shiroa/riscv64:latest cargo build --manifest-path cli/Cargo.toml --profile release-stripped --target ${CARGO_TARGET} --bin shiroa
docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project shiroa/riscv64:latest cargo build --manifest-path cli/Cargo.toml --profile relwithdebinfo --target ${CARGO_TARGET} --bin shiroa
env:
CROSS_DOCKER_IN_DOCKER: true
CARGO_TARGET: ${{ matrix.rust-target }}
Expand All @@ -127,12 +127,12 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: shiroa-${{ env.target }}
path: target/${{ matrix.rust-target }}/release-stripped/shiroa*
path: target/${{ matrix.rust-target }}/release/shiroa*
if-no-files-found: error
- uses: actions/upload-artifact@v3
with:
name: shiroa-${{ env.target }}-relwithdebuginfo
path: target/${{ matrix.rust-target }}/release/shiroa*
path: target/${{ matrix.rust-target }}/relwithdebinfo/shiroa*
if-no-files-found: error

build_alpine:
Expand Down Expand Up @@ -161,20 +161,20 @@ jobs:
- name: build binaries
run: |
cargo build --release --manifest-path cli/Cargo.toml --target $RUST_TARGET --bin shiroa
cargo build --profile release-stripped --manifest-path cli/Cargo.toml --target $RUST_TARGET --bin shiroa
cargo build --profile relwithdebuginfo --manifest-path cli/Cargo.toml --target $RUST_TARGET --bin shiroa
- uses: actions/upload-artifact@v3
with:
name: shiroa-font-assets
path: assets
if-no-files-found: error
- uses: actions/upload-artifact@v3
with:
name: shiroa-${{ env.target }}
path: target/${{ env.RUST_TARGET }}/release-stripped/shiroa*
name: shiroa-${{ env.target }}-relwithdebuginfo
path: target/${{ env.RUST_TARGET }}/relwithdebuginfo/shiroa*
if-no-files-found: error
- uses: actions/upload-artifact@v3
with:
name: shiroa-${{ env.target }}-relwithdebuginfo
name: shiroa-${{ env.target }}
path: target/${{ env.RUST_TARGET }}/release/shiroa*
if-no-files-found: error

Expand Down Expand Up @@ -204,27 +204,27 @@ jobs:
rm -f artifacts/$src/*.d
rm -f artifacts/$src/*.pdb
mkdir -p relwithdebinfo/$name/bin
cp artifacts/$src-relwithdebuginfo/shiroa* "relwithdebinfo/$name/bin/"
cp -r CHANGELOG relwithdebinfo/$name/
cp -r github-pages/docs relwithdebinfo/$name/
cp README.md \
LICENSE \
CHANGELOG.md \
relwithdebinfo/$name/
chmod +x relwithdebinfo/$name/bin/shiroa*
tar czvf gh-release/$name-relwithdebuginfo.tar.gz -C relwithdebinfo $name
mkdir -p release/$name/bin
cp artifacts/$src-relwithdebuginfo/shiroa* "release/$name/bin/"
cp artifacts/$src/shiroa* "release/$name/bin/"
cp -r CHANGELOG release/$name/
cp -r github-pages/docs release/$name/
cp README.md \
LICENSE \
CHANGELOG.md \
release/$name/
chmod +x release/$name/bin/shiroa*
tar czvf gh-release/$name-relwithdebuginfo.tar.gz -C release $name
mkdir -p release-stripped/$name/bin
cp artifacts/$src/shiroa* "release-stripped/$name/bin/"
cp -r CHANGELOG release-stripped/$name/
cp -r github-pages/docs release-stripped/$name/
cp README.md \
LICENSE \
CHANGELOG.md \
release-stripped/$name/
chmod +x release-stripped/$name/bin/shiroa*
tar czvf gh-release/$name.tar.gz -C release-stripped $name
tar czvf gh-release/$name.tar.gz -C release $name
}
pack_release win32-x64 x86_64-pc-windows-msvc
pack_release win32-ia32 i686-pc-windows-msvc
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[submodule "assets/artifacts"]
path = assets/artifacts
url = https://github.com/Myriad-Dreamin/typst/
branch = assets-book-v0.2.0
branch = assets-book-v0.2.0-2
shallow = true
Loading

0 comments on commit 054b802

Please sign in to comment.