mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-25 07:47:13 +03:00
Build apple x86 (#2253)
This commit is contained in:
parent
baac3d01be
commit
a89044fd94
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
@ -41,6 +41,9 @@ jobs:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
components: clippy
|
||||
|
||||
- name: Rustup Show
|
||||
run: rustup show
|
||||
|
||||
- name: Build Debug
|
||||
run: |
|
||||
cargo build
|
||||
@ -171,6 +174,38 @@ jobs:
|
||||
make build-linux-arm-release
|
||||
ls -l ./target/aarch64-unknown-linux-gnu/release/gitui || ls -l ./target/armv7-unknown-linux-gnueabihf/release/gitui || ls -l ./target/arm-unknown-linux-gnueabihf/release/gitui
|
||||
|
||||
build-apple-x86:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
rust: [nightly, stable, '1.70']
|
||||
continue-on-error: ${{ matrix.rust == 'nightly' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Restore cargo cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
env:
|
||||
cache-name: ci
|
||||
with:
|
||||
key: apple-x86-${{ env.cache-name }}-${{ matrix.rust }}
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
- name: Setup target
|
||||
run: rustup target add x86_64-apple-darwin
|
||||
|
||||
- name: Build Debug
|
||||
run: |
|
||||
make build-apple-x86-debug
|
||||
- name: Build Release
|
||||
run: |
|
||||
make build-apple-x86-release
|
||||
ls -l ./target/x86_64-apple-darwin/release/gitui
|
||||
|
||||
linting:
|
||||
name: Lints
|
||||
runs-on: ubuntu-latest
|
||||
|
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@ -69,6 +69,9 @@ jobs:
|
||||
- name: Build Release Mac
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: make release-mac
|
||||
- name: Build Release Mac x86
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: make release-mac-x68
|
||||
- name: Build Release Linux
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: make release-linux-musl
|
||||
@ -107,6 +110,7 @@ jobs:
|
||||
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
|
||||
run: |
|
||||
aws s3 cp ./release/gitui-mac.tar.gz $AWS_BUCKET_NAME
|
||||
aws s3 cp ./release/gitui-mac-x86.tar.gz $AWS_BUCKET_NAME
|
||||
|
||||
- name: Windows Upload Artifact
|
||||
if: matrix.os == 'windows-latest'
|
||||
|
14
Makefile
14
Makefile
@ -26,6 +26,14 @@ release-mac: build-release
|
||||
tar -C ./target/release/ -czvf ./release/gitui-mac.tar.gz ./gitui
|
||||
ls -lisah ./release/gitui-mac.tar.gz
|
||||
|
||||
release-mac-x86: build-apple-x86-release
|
||||
strip target/x86_64-apple-darwin/release/gitui
|
||||
otool -L target/x86_64-apple-darwin/release/gitui
|
||||
ls -lisah target/x86_64-apple-darwin/release/gitui
|
||||
mkdir -p release
|
||||
tar -C ./target/x86_64-apple-darwin/release/ -czvf ./release/gitui-mac-x86.tar.gz ./gitui
|
||||
ls -lisah ./release/gitui-mac-x86.tar.gz
|
||||
|
||||
release-win: build-release
|
||||
mkdir -p release
|
||||
tar -C ./target/release/ -czvf ./release/gitui-win.tar.gz ./gitui.exe
|
||||
@ -38,6 +46,12 @@ release-linux-musl: build-linux-musl-release
|
||||
mkdir -p release
|
||||
tar -C ./target/x86_64-unknown-linux-musl/release/ -czvf ./release/gitui-linux-x86_64.tar.gz ./gitui
|
||||
|
||||
build-apple-x86-debug:
|
||||
cargo build --target=x86_64-apple-darwin
|
||||
|
||||
build-apple-x86-release:
|
||||
cargo build --release --target=x86_64-apple-darwin
|
||||
|
||||
build-linux-musl-debug:
|
||||
cargo build --target=x86_64-unknown-linux-musl
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user