From c06d6a20c73ebc719c52c6d38493e62f73c728bd Mon Sep 17 00:00:00 2001 From: Haruaki Tamada Date: Mon, 15 Apr 2024 12:20:21 +0900 Subject: [PATCH] fix CI errors of invalid reference of upload_url --- .github/workflows/publish.yaml | 29 ++++++++++++++--------------- Cargo.toml | 2 +- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7b850cc..9d90791 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -46,22 +46,22 @@ jobs: target: aarch64-unknown-linux-gnu artifact_name: ${{ needs.setup.outputs.appname }} asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_linux_arm64 - - os: macOS-latest + - os: ubuntu-latest target: x86_64-apple-darwin artifact_name: ${{ needs.setup.outputs.appname }} asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_darwin_amd64 - - os: macOS-latest + - os: ubuntu-latest target: aarch64-apple-darwin artifact_name: ${{ needs.setup.outputs.appname }} asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_darwin_arm64 - - os: windows-latest - target: x86_64-pc-windows-msvc - artifact_name: ${{ needs.setup.outputs.appname }}.exe - asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_windows_amd64 - - os: windows-latest - target: aarch64-pc-windows-msvc - artifact_name: btmeister.exe - asset_name: btmeister-${{ needs.setup.outputs.tag }}_windows_arm64 + # - os: ubuntu-latest + # target: x86_64-pc-windows-msvc + # artifact_name: ${{ needs.setup.outputs.appname }}.exe + # asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_windows_amd64 + # - os: ubuntu-latest + # target: aarch64-pc-windows-msvc + # artifact_name: btmeister.exe + # asset_name: btmeister-${{ needs.setup.outputs.tag }}_windows_arm64 steps: # initialization @@ -74,9 +74,9 @@ jobs: - name: Setup Rust (1/2) uses: actions-rust-lang/setup-rust-toolchain@v1 - # - name: Setup Rust (2/2) - # run: | - # cargo install cross + - name: Setup Rust (2/2) + run: | + cargo install cross - name: Setup variables id: vars @@ -87,8 +87,7 @@ jobs: - name: Cross build with all features run: | - rustup target add ${{ matrix.target }} - cargo build --release --target ${{ matrix.target }} + cross build --release --target ${{ matrix.target }} # publish release - name: Create release file diff --git a/Cargo.toml b/Cargo.toml index c2c9f52..c7358b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "totebag" -version = "0.1.6" +version = "0.1.7" description = "A tool for archiving files and directories and extracting several archive formats." repository = "https://github.com/tamada/totebag" readme = "README.md"