Skip to content

Commit

Permalink
Add windows x86 build
Browse files Browse the repository at this point in the history
  • Loading branch information
x2bool committed Jul 30, 2022
1 parent 4cc613a commit 58b7f8c
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,24 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build debug
- name: Build x64 debug
run: cargo build --verbose
- name: Run tests
- name: Run x64 tests
run: cargo test --verbose
- name: Build release
- name: Build x64 release
run: cargo build --release
- name: Install x86 target
run: rustup target add i686-pc-windows-msvc
- name: Build x86 release
run: cargo build --release --target=i686-pc-windows-msvc
- uses: actions/upload-artifact@v3
with:
name: windows-x64
path: target/release/xlite.dll
- uses: actions/upload-artifact@v3
with:
name: windows-x86
path: target/i686-pc-windows-msvc/release/xlite.dll

build-macos:

Expand Down Expand Up @@ -88,6 +96,8 @@ jobs:
run: mv linux-x86/libxlite.so ./libxlite.so && tar -zcvf libxlite-linux-x86.tar.gz libxlite.so && rm libxlite.so
- name: Archive windows-x64
run: mv windows-x64/xlite.dll ./xlite.dll && zip xlite-windows-x64.zip xlite.dll && rm xlite.dll
- name: Archive windows-x86
run: mv windows-x86/xlite.dll ./xlite.dll && zip xlite-windows-x86.zip xlite.dll && rm xlite.dll
- name: Archive macos-x64
run: mv macos-x64/libxlite.dylib ./libxlite.dylib && zip libxlite-macos-x64.zip libxlite.dylib && rm libxlite.dylib

Expand Down Expand Up @@ -133,6 +143,16 @@ jobs:
asset_name: xlite-windows-x64.zip
asset_content_type: application/octet-stream

- name: Upload windows-x86 artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./xlite-windows-x86.zip
asset_name: xlite-windows-x86.zip
asset_content_type: application/octet-stream

- name: Upload macos-x64 artifact
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 58b7f8c

Please sign in to comment.