Skip to content

Commit

Permalink
Fix nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
harmless-tech committed Apr 25, 2024
1 parent e7c133f commit 49884f3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 27 deletions.
9 changes: 9 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[unstable]
build-std = ["std", "panic_abort", "core", "alloc"]
build-std-features = ["panic_immediate_abort"]

[target.aarch64-unknown-linux-musl]
rustflags = ["-C", "link-arg=-lgcc"]

[build]
rustflags = ["--cfg=has_std"]
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ jobs:
- name: Run tests
if: ${{ matrix.can-test }}
run: |
BIN_LOC="./target/${{ matrix.target }}/release/${{ env.bin-name }}" ./test/_test.sh
BIN_LOC="./target/${{ matrix.target }}/zmall/${{ env.bin-name }}" ./test/_test.sh
- name: Rename
run: cp ./target/${{ matrix.target }}/release/${{ env.bin-name }} ./${{ env.bin-name }}-${{ matrix.target }}
run: cp ./target/${{ matrix.target }}/zmall/${{ env.bin-name }} ./${{ env.bin-name }}-${{ matrix.target }}
- name: Chmod
run: chmod +x ./${{ env.bin-name }}-${{ matrix.target }}
- name: Hash
Expand Down Expand Up @@ -415,9 +415,9 @@ jobs:
- name: Run tests
if: ${{ matrix.can-test }}
run: |
BIN_LOC="./target/${{ matrix.target }}/release/${{ env.bin-name }}" ./test/_test.sh
BIN_LOC="./target/${{ matrix.target }}/zmall/${{ env.bin-name }}" ./test/_test.sh
- name: Rename
run: cp ./target/${{ matrix.target }}/release/${{ env.bin-name }} ./${{ env.bin-name }}-${{ matrix.target }}
run: cp ./target/${{ matrix.target }}/zmall/${{ env.bin-name }} ./${{ env.bin-name }}-${{ matrix.target }}
- name: Chmod
run: chmod +x ./${{ env.bin-name }}-${{ matrix.target }}
- name: Hash
Expand Down Expand Up @@ -458,7 +458,7 @@ jobs:
- name: Build
run: cargo +nightly auditable build --verbose --workspace --profile=zmall --locked --target ${{ matrix.target }} ${{ env.feature-set }}
- name: Rename
run: cp ./target/${{ matrix.target }}/release/${{ env.bin-name }}.exe ./${{ env.bin-name }}-${{ matrix.target }}.exe
run: cp ./target/${{ matrix.target }}/zmall/${{ env.bin-name }}.exe ./${{ env.bin-name }}-${{ matrix.target }}.exe
- name: Hash
run: echo "$(coreutils sha256sum ./${{ env.bin-name }}-${{ matrix.target }}.exe)" > ${{ matrix.target }}.sha256
- name: Artifact
Expand Down
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "qstract"
version = "0.2.2"
edition = "2021"
authors = ["harmless-tech"]
description = "A basic tar/zip extraction program"
description = "A very basic tar/zip extraction program"
readme = "README.md"
license = "MIT"
repository = "https://github.com/cargo-prebuilt/qstract"
Expand All @@ -29,6 +29,9 @@ sha2 = "0.10.8"
sha3 = "0.10.8"
tar = "0.4.40"

[profile.dev]
panic = "abort"

[profile.release]
opt-level = 3
lto = true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Rust Checks](https://github.com/cargo-prebuilt/qstract/actions/workflows/checks.yml/badge.svg?event=push)](https://github.com/cargo-prebuilt/qstract/actions/workflows/checks.yml)
[![rustc-msrv](https://img.shields.io/badge/rustc-1.74%2B-blue?logo=rust)](https://www.rust-lang.org/tools/install)

A basic tar/zip extraction program.
A very basic tar/zip extraction program.

## Installation

Expand Down

0 comments on commit 49884f3

Please sign in to comment.