Skip to content

Commit 19bd71d

Browse files
committed
windows環境rustインストール修正
1 parent b9afc75 commit 19bd71d

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,19 @@ jobs:
5151
if: runner.os == 'Windows'
5252
shell: msys2 {0}
5353
run: |
54+
# MSYS2 の $HOME に Rust ツールチェーンをインストールする
55+
export CARGO_HOME="$HOME/.cargo"
56+
export RUSTUP_HOME="$HOME/.rustup"
5457
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
55-
source ~/.cargo/env
58+
# インストールされた cargo を有効化
59+
source "$CARGO_HOME/env"
5660
5761
# 4. macOS x86_64 用依存インストール
5862
- name: Install system dependencies on macOS (Intel)
5963
if: runner.os == 'macOS' && startsWith(matrix.target, 'x86_64-apple-darwin')
6064
run: |
6165
brew update
62-
brew install nettle
66+
brew install nettle
6367
brew install pkgconf
6468
6569
# 5. Linux 用依存インストール
@@ -119,4 +123,19 @@ jobs:
119123
if: runner.os != 'Windows'
120124
run: |
121125
cd client-tauri
122-
cargo tauri build --release --target $
126+
cargo tauri build --release --target ${{ matrix.target }}
127+
128+
# 11. バンドルを ZIP 化してリリースへアップロード
129+
- name: Archive bundles
130+
run: |
131+
zip -r release-${{ matrix.target }}.zip \
132+
client-tauri/target/${{ matrix.target }}/release/bundle \
133+
target/${{ matrix.target }}/release/libcommon.rlib
134+
135+
- name: Upload Release Asset
136+
uses: actions/upload-release-asset@v1
137+
with:
138+
upload_url: ${{ github.event.release.upload_url }}
139+
asset_path: release-${{ matrix.target }}.zip
140+
asset_name: release-${{ matrix.target }}.zip
141+
asset_content_type: application/zip

0 commit comments

Comments
 (0)