Skip to content

Commit

Permalink
Also check Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Dec 20, 2024
1 parent 3528d62 commit d16e0b6
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/aws-lc-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,59 @@ jobs:
- name: Collect source from ${{ matrix.os }}
working-directory: ./aws-lc-rs
run: ./scripts/build/collect_build_src.sh
windows-aws-lc-rs-bindgen:
if: github.repository_owner == 'aws'
runs-on: ${{ matrix.os }}
name: aws-lc-rs bindgen on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-latest ]
target: [ x86_64-pc-windows-msvc ]
steps:
- uses: actions/checkout@v3
with:
repository: aws/aws-lc-rs
path: ./aws-lc-rs
submodules: false
- name: Remove aws-lc submodule from crate directory
working-directory: ./aws-lc-rs/aws-lc-sys
shell: bash
run: |
rm -rf aws-lc
- uses: actions/checkout@v3
with:
path: ./aws-lc-rs/aws-lc-sys/aws-lc
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_SCRIPT_NIGHTLY_TOOLCHAIN }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-go@v4
with:
go-version: '>=1.20'
- uses: ilammy/setup-nasm@v1
- name: No-prefix build for ${{ matrix.target }}
env:
AWS_LC_SYS_NO_PREFIX: "1"
working-directory: ./aws-lc-rs
run: |
cargo test -p aws-lc-sys --features bindgen --target ${{ matrix.target }}
- name: Collect symbols
working-directory: ./aws-lc-rs
shell: bash
run: |
./scripts/build/collect_symbols.sh -c aws-lc-sys -t ${{ matrix.target }}
- name: Generate Prefix Headers
working-directory: ./aws-lc-rs
shell: bash
run: ./scripts/generate/_generate_prefix_headers.sh -c aws-lc-sys
- name: Update sys-crate metadata
working-directory: ./aws-lc-rs
shell: bash
run: ./scripts/ci/update_sys_crate_metadata.sh aws-lc-sys
- name: Generate bindings for ${{ matrix.target }}
env:
AWS_LC_SYS_PREGENERATING_BINDINGS: "1"
working-directory: ./aws-lc-rs
run: |
cargo test -p aws-lc-sys --features bindgen --target ${{ matrix.target }}

0 comments on commit d16e0b6

Please sign in to comment.