diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9e4c454..2c9d521 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -40,11 +40,11 @@ jobs: matrix: include: - os: ubuntu-latest - target: x86_64-unknown-linux-gnu + target: x86_64-unknown-linux-musl artifact_name: ${{ needs.setup.outputs.appname }} asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_linux_amd64 - os: ubuntu-latest - target: aarch64-unknown-linux-gnu + target: aarch64-unknown-linux-musl artifact_name: ${{ needs.setup.outputs.appname }} asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_linux_arm64 - os: macOS-latest @@ -59,10 +59,10 @@ jobs: 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: windows-latest + target: aarch64-pc-windows-msvc + artifact_name: btmeister.exe + asset_name: btmeister-${{ needs.setup.outputs.tag }}_windows_arm64 steps: # initialization @@ -72,23 +72,24 @@ jobs: ref: main fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - name: Setup Rust + - name: Setup Rust (1/2) uses: actions-rust-lang/setup-rust-toolchain@v1 - + + # - name: Setup Rust (2/2) + # run: | + # cargo install cross + - name: Setup variables id: vars shell: bash run: | - rustup target list DIR=$(echo "${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}") echo "::set-output name=dir::$DIR" - name: Cross build with all features - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --release --target ${{ matrix.target }} --all-features --verbose + run: | + rustup target add ${{ matrix.target }} + cargo build --release --target ${{ matrix.target }} # publish release - name: Create release file diff --git a/Cargo.toml b/Cargo.toml index b6ee27c..437e58d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "totebag" -version = "0.1.1" +version = "0.1.2" description = "A tool for archiving files and directories and extracting several archive formats." repository = "https://github.com/tamada/totebag" readme = "README.md"