Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsawye committed Nov 10, 2024
1 parent 4e8b2a3 commit 92c27a9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
"changelog": "@changesets/cli/changelog",
"changelog": ["@changesets/changelog-github", { "repo": "jigsawye/swagit" }],
"commit": false,
"fixed": [],
"linked": [],
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: Swatinem/rust-cache@v2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -50,11 +50,20 @@ jobs:
- name: Install Dependencies
run: pnpm install

- name: Install cross
run: cargo install cross
- name: Install cross-compilation dependencies
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
- name: Build binary
run: cross build --release --target ${{ matrix.target }}
run: |
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
export CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc
export CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++
fi
cargo build --release --target ${{ matrix.target }}
- name: Prepare package
shell: bash
Expand Down Expand Up @@ -97,9 +106,8 @@ jobs:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: npm
pattern: '*'
merge-multiple: true
path: packages
pattern: '*-*'

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down

0 comments on commit 92c27a9

Please sign in to comment.