Attempt i686 cross compilation on Github Actions release
This commit is contained in:
parent
50d5ec48cf
commit
f9bb89481b
1 changed files with 14 additions and 3 deletions
17
.github/workflows/deploy.yml
vendored
17
.github/workflows/deploy.yml
vendored
|
|
@ -8,6 +8,16 @@ on:
|
|||
jobs:
|
||||
deploy-windows:
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
matrix:
|
||||
conf:
|
||||
- x86_64-pc-windows-msvc
|
||||
- i686-pc-windows-msvc
|
||||
include:
|
||||
- conf: x86_64-pc-windows-msvc
|
||||
target: x86_64-pc-windows-msvc
|
||||
- conf: i686-pc-windows-msvc
|
||||
toolchain: i686-pc-windows-msvc
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: olegtarasov/get-tag@v2
|
||||
|
|
@ -15,22 +25,23 @@ jobs:
|
|||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
target: ${{ matrix.target }}
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- name: Build oxipng
|
||||
run: |
|
||||
cargo build --release
|
||||
cargo build --release --target ${{ matrix.target }}
|
||||
strip target/release/oxipng.exe
|
||||
- name: Create zip
|
||||
run: |
|
||||
$OXIPNG_PATH="$Env:GITHUB_WORKSPACE\target\release"
|
||||
7z a oxipng-${{ steps.tagName.outputs.tag }}-x86_64-pc-windows-msvc.zip "$OXIPNG_PATH\oxipng.exe"
|
||||
7z a oxipng-${{ steps.tagName.outputs.tag }}-${{ matrix.target }}.zip "$OXIPNG_PATH\oxipng.exe"
|
||||
- name: Create a release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
name: ${{ steps.tagName.outputs.tag }}
|
||||
files: |
|
||||
oxipng-${{ steps.tagName.outputs.tag }}-x86_64-pc-windows-msvc.zip
|
||||
oxipng-${{ steps.tagName.outputs.tag }}-${{ matrix.target }}.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue