Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Apr 15, 2024
1 parent f9204e6 commit 9269835
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 9269835

Please sign in to comment.