Skip to content

Commit 4198ab0

Browse files
committed
fuck macos x86
1 parent 9364d27 commit 4198ab0

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
include:
3131
- target: x86_64-unknown-linux-gnu
3232
os: ubuntu-latest
33-
- target: x86_64-apple-darwin
34-
os: macos-latest
3533
- target: aarch64-apple-darwin
3634
os: macos-latest
3735
- target: x86_64-pc-windows-msvc
@@ -40,20 +38,13 @@ jobs:
4038
runs-on: ${{ matrix.os }}
4139
steps:
4240
- uses: actions/checkout@v4
43-
41+
4442
- name: Install Rust toolchain
4543
uses: dtolnay/rust-toolchain@stable
4644
with:
4745
targets: ${{ matrix.target }}
4846
components: rust-src
4947

50-
- name: Install OpenSSL (macOS)
51-
if: matrix.target == 'x86_64-apple-darwin'
52-
run: |
53-
brew install openssl@3
54-
echo "OPENSSL_DIR=$(brew --prefix openssl@3)" >> $GITHUB_ENV
55-
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig" >> $GITHUB_ENV
56-
5748
- name: Cache dependencies
5849
uses: Swatinem/rust-cache@v2
5950

@@ -67,22 +58,22 @@ jobs:
6758
shell: bash
6859
run: |
6960
cd target/${{ matrix.target }}/release
70-
61+
7162
# Define binary name with extension if windows
7263
BIN_NAME=glimpse
7364
if [ "${{ matrix.os }}" = "windows-latest" ]; then
7465
BIN_NAME=glimpse.exe
7566
fi
76-
67+
7768
# Create archive name
7869
ARCHIVE_NAME=glimpse-${{ github.ref_name }}-${{ matrix.target }}
79-
70+
8071
# Create dist directory with required files
8172
mkdir -p $ARCHIVE_NAME
8273
cp $BIN_NAME $ARCHIVE_NAME/
8374
cp ../../../readme.md $ARCHIVE_NAME/
8475
cp ../../../LICENSE $ARCHIVE_NAME/
85-
76+
8677
# Create archive based on OS
8778
if [ "${{ matrix.os }}" = "windows-latest" ]; then
8879
7z a -tzip "${ARCHIVE_NAME}.zip" $ARCHIVE_NAME
@@ -108,17 +99,17 @@ jobs:
10899
with:
109100
repository: ${{ github.repository_owner }}/homebrew-glimpse
110101
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
111-
102+
112103
- name: Update formula
113104
run: |
114105
# Get tarball URL and SHA
115106
TARBALL_URL="https://github.com/${{ github.repository }}/archive/refs/tags/${{ github.ref_name }}.tar.gz"
116107
SHA256=$(curl -L $TARBALL_URL | shasum -a 256 | cut -d ' ' -f 1)
117-
108+
118109
# Update formula version and hash
119110
sed -i "s|url.*|url \"$TARBALL_URL\"|" Formula/glimpse.rb
120111
sed -i "s|sha256.*|sha256 \"$SHA256\"|" Formula/glimpse.rb
121-
112+
122113
- name: Commit and push changes
123114
run: |
124115
git config user.name "GitHub Actions"

0 commit comments

Comments
 (0)