Skip to content

Commit

Permalink
test new ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Nov 22, 2024
1 parent 43a0eb6 commit 484110b
Show file tree
Hide file tree
Showing 3 changed files with 242 additions and 192 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,25 @@ jobs:
toolchain: stable
profile: minimal
default: true
- name: Enable x86
run: rustup target add x86_64-apple-darwin
- name: Build
- name: Add macOS targets
run: |
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
- name: Build x86_64 binary
run: cargo build --release --locked --target x86_64-apple-darwin
- name: Build arm64 binary
run: cargo build --release --locked --target aarch64-apple-darwin
- name: Combine binaries into a universal binary
run: |
mkdir -p universal_binary
lipo -create \
target/x86_64-apple-darwin/release/geph4-client \
target/aarch64-apple-darwin/release/geph4-client \
-output universal_binary/geph4-client
- name: Move built files
run: sh move_built.sh
run: |
mkdir -p OUTPUT
mv universal_binary/geph4-client OUTPUT/
- name: Sync to B2
run: b2 sync ./OUTPUT/ b2://geph-dl/geph4-binaries/

Expand Down
Loading

0 comments on commit 484110b

Please sign in to comment.