Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] Build/Test for x86_64-pc-windows-gnullvm #702

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ jobs:
- name: Run cargo test
run: cargo build -p aws-lc-rs --features prebuilt-nasm --target x86_64-pc-windows-gnu
open-harmony:
if: github.repository_owner == 'aws'
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
Expand All @@ -314,6 +315,7 @@ jobs:
docker run -v "${{ github.workspace }}:/aws_lc_rs" ohos:5.0.0

alpine-linux:
if: github.repository_owner == 'aws'
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
Expand All @@ -328,3 +330,44 @@ jobs:
- name: Build
run: |
docker run -v "${{ github.workspace }}:/aws_lc_rs" alpine:3.20

msys2:
if: github.repository_owner == 'aws'
name: ${{ matrix.sys }} - ${{ matrix.target }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { sys: mingw64, env: x86_64, target: x86_64-pc-windows-gnu, cc: gcc, rustflags: "" }
- { sys: mingw32, env: i686, target: i686-pc-windows-gnu, cc: gcc, rustflags: "" }
- { sys: ucrt64, env: ucrt-x86_64, target: x86_64-pc-windows-gnu, cc: gcc, rustflags: "" }
- { sys: clang64, env: clang-x86_64, target: x86_64-pc-windows-gnullvm, cc: clang, rustflags: "-Clinker=clang" }
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
install: git base-devel mingw-w64-${{matrix.env}}-llvm
release: true
- run: git config --global core.autocrlf input
- name: Install NASM
uses: ilammy/setup-nasm@v1.5.1
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: stable
target: ${{matrix.target}}
- name: Build
env:
CC: ${{matrix.cc}}
RUSTFLAGS: ${{matrix.rustflags}}
run: cargo build -p aws-lc-rs --target ${{matrix.target}} --features bindgen
- name: Test
env:
CC: ${{matrix.cc}}
RUSTFLAGS: ${{matrix.rustflags}}
run: cargo test -p aws-lc-rs --target ${{matrix.target}} --features bindgen
9 changes: 8 additions & 1 deletion aws-lc-sys/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5...3.31)

if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
# https://cmake.org/cmake/help/latest/policy/CMP0091.html
# In CMake 3.14 and below, MSVC runtime library selection flags are added to the default CMAKE_<LANG>_FLAGS_<CONFIG>
# cache entries by CMake automatically.
cmake_policy(SET CMP0091 OLD)
endif()

project(AWS_LC_RUST NONE)
enable_language(C)
Expand Down
Loading
Loading