Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimryndin committed Feb 22, 2024
1 parent 5eb6cc3 commit cdebad8
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,26 +113,23 @@ jobs:
strategy:
matrix:
include:
# - build: linux
# os: ubuntu-latest
# target: x86_64-unknown-linux-gnu
# zig_target: x86-linux-gnu
# rustflags: ""
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
packages: clang
cc: clang

- build: linux
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
packages: "libc6-dev-arm64-cross gcc-aarch64-linux-gnu"
cc: aarch64-linux-gnu-gcc

# - build: macos
# os: macos-latest
# target: aarch64-apple-darwin
# zig_target: aarch64-macos-none

# - build: windows-gnu
# os: windows-latest
# target: x86_64-pc-windows-gnu
- build: windows-gnu
os: windows-latest
target: x86_64-pc-windows-gnu
packages: gcc-mingw-w64-x86-64-win32
cc: mingw-w64-x86-64-win32-gcc

steps:
- name: Clone repository
Expand All @@ -145,8 +142,7 @@ jobs:
run: |
set +e
#echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "VERSION=test" >> $GITHUB_ENV
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
if echo "${GITHUB_REF#refs/tags/}" | grep -q "rc"; then
echo "PRERELEASE=true" >> $GITHUB_ENV
else
Expand Down Expand Up @@ -177,9 +173,6 @@ jobs:
- name: Build
env:
RUSTFLAGS: '-C target-feature=+crt-static -C linker=${{ matrix.cc }}'
#CC_aarch64_unknown_linux_gnu: "aarch64-linux-gnu-gcc"
#CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "aarch64-linux-gnu-gcc"
#BINDGEN_EXTRA_CLANG_ARGS: -"-sysroot /usr/aarch64-linux-gnu"
shell: bash
run: |
CC=${{ matrix.cc }} cargo build --verbose --release --target ${{ matrix.target }}
Expand Down

0 comments on commit cdebad8

Please sign in to comment.