mirror of
https://github.com/chmln/sd
synced 2024-11-21 18:53:03 +00:00
Build Adjustments (#179)
* Adding extra compile targets * Moving symbol stripping to cargo release build instead of doing it manually after the fact * Removing Windows builds * aarch64-apple-darwin build works better without cross * Re-introducing windows builds, but commenting it out to signal future work * Commenting out failing `aarch64-apple-darwin` test * Adding failing 'x86_64-pc-windows-msvc` test back in as a comment
This commit is contained in:
parent
b5768a7a4e
commit
1d56bc897d
3 changed files with 22 additions and 10 deletions
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
|
@ -24,9 +24,10 @@ jobs:
|
|||
target: arm-unknown-linux-gnueabihf
|
||||
use-cross: true
|
||||
|
||||
- os: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
use-cross: false
|
||||
# This isn't working right now. See this: https://github.com/chmln/sd/pull/179#discussion_r1195840367
|
||||
# - os: windows-latest
|
||||
# target: x86_64-pc-windows-msvc
|
||||
# use-cross: false
|
||||
|
||||
- os: macos-latest
|
||||
target: x86_64-apple-darwin
|
||||
|
@ -36,6 +37,10 @@ jobs:
|
|||
target: aarch64-apple-darwin
|
||||
use-cross: false
|
||||
|
||||
- os: ubuntu-latest
|
||||
target: aarch64-unknown-linux-musl
|
||||
use-cross: true
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
@ -62,10 +67,6 @@ jobs:
|
|||
command: build
|
||||
args: --target ${{ matrix.target }} --release --locked
|
||||
|
||||
- name: Strip binary
|
||||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
|
||||
run: strip target/${{ matrix.target }}/release/sd
|
||||
|
||||
- name: Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
with:
|
||||
|
|
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
|
@ -21,14 +21,24 @@ jobs:
|
|||
target: arm-unknown-linux-gnueabihf
|
||||
use-cross: true
|
||||
|
||||
- os: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
use-cross: false
|
||||
# This isn't working right now. See this: https://github.com/chmln/sd/pull/179#discussion_r1195840870
|
||||
# - os: windows-latest
|
||||
# target: x86_64-pc-windows-msvc
|
||||
# use-cross: false
|
||||
|
||||
- os: macos-latest
|
||||
target: x86_64-apple-darwin
|
||||
use-cross: false
|
||||
|
||||
# This isn't working right now. See this: https://github.com/chmln/sd/pull/179#discussion_r1195840870
|
||||
# - os: macos-latest
|
||||
# target: aarch64-apple-darwin
|
||||
# use-cross: false
|
||||
|
||||
- os: ubuntu-latest
|
||||
target: aarch64-unknown-linux-musl
|
||||
use-cross: true
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
|
|
@ -36,3 +36,4 @@ man = "0.3.0"
|
|||
[profile.release]
|
||||
opt-level = 3
|
||||
lto = true
|
||||
strip = true
|
||||
|
|
Loading…
Reference in a new issue