Skip to content

Commit

Permalink
v0.2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
eycorsican committed Mar 12, 2021
1 parent f1fbff9 commit 494f7ff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
RUSTFLAGS="-Z strip=symbols"
export RUSTFLAGS="-Z strip=symbols"
./misc/build_cross.sh ${{ matrix.target }}
- name: rename and compress artifacts
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
RUSTFLAGS="-Z strip=symbols"
export RUSTFLAGS="-Z strip=symbols"
cargo build --release --target ${{ matrix.target }} -p leaf-bin
- name: rename and compress artifacts
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
- name: build
run: |
RUSTFLAGS="-Z strip=symbols"
export RUSTFLAGS="-Z strip=symbols"
make ios
- name: zip artifacts
Expand Down Expand Up @@ -218,15 +218,26 @@ jobs:
- name: zip artifacts
if: ${{ matrix.target != 'x86_64-pc-windows-gnu' }}
run: |
zip -9 leaf-${{ matrix.target }}.zip leaf-${{ matrix.target }}
gzip leaf-${{ matrix.target }}
- name: zip artifacts
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
run: |
zip -9 leaf-${{ matrix.target }}.zip leaf-${{ matrix.target }}.exe
- name: upload asset
id: upload-release-asset
if: ${{ matrix.target != 'x86_64-pc-windows-gnu' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ env.uploadurl }}
asset_path: ./leaf-${{ matrix.target }}.gz
asset_name: leaf-${{ matrix.target }}.gz
asset_content_type: application/octet-stream

- name: upload asset
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -260,7 +271,6 @@ jobs:
name: libleaf-ios.zip

- name: upload asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion leaf-bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "leaf-bin"
version = "0.2.12"
version = "0.2.13"
authors = ["eycorsican <[email protected]>"]
edition = "2018"

Expand Down

0 comments on commit 494f7ff

Please sign in to comment.