mirror of
https://github.com/chmln/sd
synced 2024-11-25 04:30:17 +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
|
target: arm-unknown-linux-gnueabihf
|
||||||
use-cross: true
|
use-cross: true
|
||||||
|
|
||||||
- os: windows-latest
|
# This isn't working right now. See this: https://github.com/chmln/sd/pull/179#discussion_r1195840367
|
||||||
target: x86_64-pc-windows-msvc
|
# - os: windows-latest
|
||||||
use-cross: false
|
# target: x86_64-pc-windows-msvc
|
||||||
|
# use-cross: false
|
||||||
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
|
@ -36,6 +37,10 @@ jobs:
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
use-cross: false
|
use-cross: false
|
||||||
|
|
||||||
|
- os: ubuntu-latest
|
||||||
|
target: aarch64-unknown-linux-musl
|
||||||
|
use-cross: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -62,10 +67,6 @@ jobs:
|
||||||
command: build
|
command: build
|
||||||
args: --target ${{ matrix.target }} --release --locked
|
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
|
- name: Upload binaries to release
|
||||||
uses: svenstaro/upload-release-action@v1-release
|
uses: svenstaro/upload-release-action@v1-release
|
||||||
with:
|
with:
|
||||||
|
|
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
|
@ -21,14 +21,24 @@ jobs:
|
||||||
target: arm-unknown-linux-gnueabihf
|
target: arm-unknown-linux-gnueabihf
|
||||||
use-cross: true
|
use-cross: true
|
||||||
|
|
||||||
- os: windows-latest
|
# This isn't working right now. See this: https://github.com/chmln/sd/pull/179#discussion_r1195840870
|
||||||
target: x86_64-pc-windows-msvc
|
# - os: windows-latest
|
||||||
use-cross: false
|
# target: x86_64-pc-windows-msvc
|
||||||
|
# use-cross: false
|
||||||
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
use-cross: false
|
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:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -36,3 +36,4 @@ man = "0.3.0"
|
||||||
[profile.release]
|
[profile.release]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
lto = true
|
lto = true
|
||||||
|
strip = true
|
||||||
|
|
Loading…
Reference in a new issue