Skip to content

Commit b5515a6

Browse files
committed
lets try this
1 parent e6b0485 commit b5515a6

File tree

1 file changed

+104
-102
lines changed

1 file changed

+104
-102
lines changed

.github/workflows/release-binaries.yml

Lines changed: 104 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -14,108 +14,108 @@ env:
1414
BIN_NAME: genesis
1515

1616
jobs:
17-
linux:
18-
runs-on: ubuntu-22.04
19-
strategy:
20-
fail-fast: false
21-
matrix:
22-
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
23-
steps:
24-
- uses: actions/checkout@v4
25-
- uses: dtolnay/rust-toolchain@stable
26-
with:
27-
targets: ${{ matrix.target }}
28-
29-
# Make sure we have modern C++17 cross compilers on Linux
30-
- name: Install modern GCC for C++17 (jammy)
31-
run: |
32-
sudo apt-get update
33-
sudo apt-get install -y \
34-
gcc-12 g++-12 \
35-
gcc-12-aarch64-linux-gnu g++-12-aarch64-linux-gnu
36-
37-
- name: Install SP1 toolchain
38-
run: |
39-
curl -L https://sp1up.succinct.xyz | bash
40-
~/.sp1/bin/sp1up
41-
~/.sp1/bin/cargo-prove prove --version
42-
source ~/.bashrc
43-
44-
- name: Build (release)
45-
working-directory: ${{ env.CRATE_PATH }}
46-
env:
47-
CC_x86_64_unknown_linux_gnu: gcc-12
48-
CXX_x86_64_unknown_linux_gnu: g++-12
49-
CXXFLAGS_x86_64_unknown_linux_gnu: -std=gnu++17
50-
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc-12
51-
CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++-12
52-
CXXFLAGS_aarch64_unknown_linux_gnu: -std=gnu++17
53-
run: |
54-
cargo build --bin ${BIN_NAME} --release --target ${{ matrix.target }}
55-
56-
- name: Package artifact
57-
run: |
58-
set -euo pipefail
59-
VERSION="${GITHUB_REF_NAME#v}"
60-
TARGET="${{ matrix.target }}"
61-
BIN="target/${TARGET}/release/${{ env.BIN_NAME }}"
62-
OUT=dist && mkdir -p "$OUT"
63-
# strip if available
64-
(strip "$BIN" || true) 2>/dev/null || true
65-
PKG="${{ env.BIN_NAME }}-${VERSION}-${TARGET}.tar.gz"
66-
tar -czf "${OUT}/${PKG}" -C "$(dirname "$BIN")" "$(basename "$BIN")"
67-
(cd "$OUT" && shasum -a 256 "$PKG" > "${PKG}.sha256")
68-
69-
- name: Upload to Release
70-
uses: softprops/action-gh-release@v2
71-
with:
72-
tag_name: ${{ github.ref_name }}
73-
files: |
74-
dist/*.tar.gz
75-
dist/*.sha256
76-
77-
macos-x86_64:
78-
runs-on: macos-13 # Intel runner
79-
steps:
80-
- uses: actions/checkout@v4
81-
- uses: dtolnay/rust-toolchain@stable
82-
with:
83-
targets: x86_64-apple-darwin
84-
85-
- name: Install SP1 toolchain
86-
run: |
87-
curl -L https://sp1up.succinct.xyz | bash
88-
~/.sp1/bin/sp1up
89-
~/.sp1/bin/cargo-prove prove --version
90-
source ~/.bashrc
91-
92-
- name: Build (release)
93-
working-directory: ${{ env.CRATE_PATH }}
94-
env:
95-
CC_x86_64_apple_darwin: clang
96-
CXX_x86_64_apple_darwin: clang++
97-
CXXFLAGS_x86_64_apple_darwin: -std=c++17
98-
run: |
99-
cargo build --bin ${BIN_NAME} --release --target x86_64-apple-darwin
100-
101-
- name: Package artifact
102-
run: |
103-
set -euo pipefail
104-
VERSION="${GITHUB_REF_NAME#v}"
105-
TARGET="x86_64-apple-darwin"
106-
BIN="target/${TARGET}/release/${{ env.BIN_NAME }}"
107-
OUT=dist && mkdir -p "$OUT"
108-
PKG="${{ env.BIN_NAME }}-${VERSION}-${TARGET}.tar.gz"
109-
tar -czf "${OUT}/${PKG}" -C "$(dirname "$BIN")" "$(basename "$BIN")"
110-
(cd "$OUT" && shasum -a 256 "$PKG" > "${PKG}.sha256")
111-
112-
- name: Upload to Release
113-
uses: softprops/action-gh-release@v2
114-
with:
115-
tag_name: ${{ github.ref_name }}
116-
files: |
117-
dist/*.tar.gz
118-
dist/*.sha256
17+
# linux:
18+
# runs-on: ubuntu-22.04
19+
# strategy:
20+
# fail-fast: false
21+
# matrix:
22+
# target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
23+
# steps:
24+
# - uses: actions/checkout@v4
25+
# - uses: dtolnay/rust-toolchain@stable
26+
# with:
27+
# targets: ${{ matrix.target }}
28+
29+
# # Make sure we have modern C++17 cross compilers on Linux
30+
# - name: Install modern GCC for C++17 (jammy)
31+
# run: |
32+
# sudo apt-get update
33+
# sudo apt-get install -y \
34+
# gcc-12 g++-12 \
35+
# gcc-12-aarch64-linux-gnu g++-12-aarch64-linux-gnu
36+
37+
# - name: Install SP1 toolchain
38+
# run: |
39+
# curl -L https://sp1up.succinct.xyz | bash
40+
# ~/.sp1/bin/sp1up
41+
# ~/.sp1/bin/cargo-prove prove --version
42+
# source ~/.bashrc
43+
44+
# - name: Build (release)
45+
# working-directory: ${{ env.CRATE_PATH }}
46+
# env:
47+
# CC_x86_64_unknown_linux_gnu: gcc-12
48+
# CXX_x86_64_unknown_linux_gnu: g++-12
49+
# CXXFLAGS_x86_64_unknown_linux_gnu: -std=gnu++17
50+
# CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc-12
51+
# CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++-12
52+
# CXXFLAGS_aarch64_unknown_linux_gnu: -std=gnu++17
53+
# run: |
54+
# cargo build --bin ${BIN_NAME} --release --target ${{ matrix.target }}
55+
56+
# - name: Package artifact
57+
# run: |
58+
# set -euo pipefail
59+
# VERSION="${GITHUB_REF_NAME#v}"
60+
# TARGET="${{ matrix.target }}"
61+
# BIN="target/${TARGET}/release/${{ env.BIN_NAME }}"
62+
# OUT=dist && mkdir -p "$OUT"
63+
# # strip if available
64+
# (strip "$BIN" || true) 2>/dev/null || true
65+
# PKG="${{ env.BIN_NAME }}-${VERSION}-${TARGET}.tar.gz"
66+
# tar -czf "${OUT}/${PKG}" -C "$(dirname "$BIN")" "$(basename "$BIN")"
67+
# (cd "$OUT" && shasum -a 256 "$PKG" > "${PKG}.sha256")
68+
69+
# - name: Upload to Release
70+
# uses: softprops/action-gh-release@v2
71+
# with:
72+
# tag_name: ${{ github.ref_name }}
73+
# files: |
74+
# dist/*.tar.gz
75+
# dist/*.sha256
76+
77+
# macos-x86_64:
78+
# runs-on: macos-13 # Intel runner
79+
# steps:
80+
# - uses: actions/checkout@v4
81+
# - uses: dtolnay/rust-toolchain@stable
82+
# with:
83+
# targets: x86_64-apple-darwin
84+
85+
# - name: Install SP1 toolchain
86+
# run: |
87+
# curl -L https://sp1up.succinct.xyz | bash
88+
# ~/.sp1/bin/sp1up
89+
# ~/.sp1/bin/cargo-prove prove --version
90+
# source ~/.bashrc
91+
92+
# - name: Build (release)
93+
# working-directory: ${{ env.CRATE_PATH }}
94+
# env:
95+
# CC_x86_64_apple_darwin: clang
96+
# CXX_x86_64_apple_darwin: clang++
97+
# CXXFLAGS_x86_64_apple_darwin: -std=c++17
98+
# run: |
99+
# cargo build --bin ${BIN_NAME} --release --target x86_64-apple-darwin
100+
101+
# - name: Package artifact
102+
# run: |
103+
# set -euo pipefail
104+
# VERSION="${GITHUB_REF_NAME#v}"
105+
# TARGET="x86_64-apple-darwin"
106+
# BIN="target/${TARGET}/release/${{ env.BIN_NAME }}"
107+
# OUT=dist && mkdir -p "$OUT"
108+
# PKG="${{ env.BIN_NAME }}-${VERSION}-${TARGET}.tar.gz"
109+
# tar -czf "${OUT}/${PKG}" -C "$(dirname "$BIN")" "$(basename "$BIN")"
110+
# (cd "$OUT" && shasum -a 256 "$PKG" > "${PKG}.sha256")
111+
112+
# - name: Upload to Release
113+
# uses: softprops/action-gh-release@v2
114+
# with:
115+
# tag_name: ${{ github.ref_name }}
116+
# files: |
117+
# dist/*.tar.gz
118+
# dist/*.sha256
119119
macos-arm64:
120120
runs-on: macos-14 # Apple Silicon runner
121121
steps:
@@ -137,6 +137,8 @@ jobs:
137137
CC_aarch64_apple_darwin: clang
138138
CXX_aarch64_apple_darwin: clang++
139139
CXXFLAGS_aarch64_apple_darwin: -std=c++17
140+
CARGO_TARGET_DIR: ${{ github.workspace }}/target-${{ runner.os }}-${{ matrix.target }}-${{ github.run_id }}
141+
CARGO_BUILD_JOBS: "1"
140142
run: |
141143
cargo build --bin ${BIN_NAME} --release --target aarch64-apple-darwin
142144

0 commit comments

Comments
 (0)