Skip to content

Commit

Permalink
Add debug targets
Browse files Browse the repository at this point in the history
  • Loading branch information
commial committed Jan 12, 2021
1 parent faecd86 commit 9ae9b60
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/mla_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,54 @@ jobs:
build:
strategy:
matrix:
build: [linux-x86_64, windows-i686, windows-x86_64]
build: [linux-x86_64, windows-i686, windows-x86_64, windows-i686-debug, windows-x86_64-debug]
include:
- build: linux-x86_64
os: ubuntu-latest
target: x86_64-unknown-linux-musl
cargo_arg: --release
path: |
./target/x86_64-unknown-linux-musl/release/libmla.a
- build: windows-i686
os: windows-latest
target: i686-pc-windows-msvc
msvc_platform: Win32
cargo_arg: --release
path: |
./target/i686-pc-windows-msvc/release/mla.lib
./target/i686-pc-windows-msvc/release/mla.dll
./target/i686-pc-windows-msvc/release/mla.dll.lib
./target/i686-pc-windows-msvc/release/mla.pdb
- build: windows-x86_64
os: windows-latest
target: x86_64-pc-windows-msvc
msvc_platform: x64
cargo_arg: --release
path: |
./target/x86_64-pc-windows-msvc/release/mla.lib
./target/x86_64-pc-windows-msvc/release/mla.dll
./target/x86_64-pc-windows-msvc/release/mla.dll.lib
./target/x86_64-pc-windows-msvc/release/mla.pdb
- build: windows-i686-debug
os: windows-latest
target: i686-pc-windows-msvc
msvc_platform: Win32
cargo_arg: ""
path: |
./target/i686-pc-windows-msvc/debug/mla.lib
./target/i686-pc-windows-msvc/debug/mla.dll
./target/i686-pc-windows-msvc/debug/mla.dll.lib
./target/i686-pc-windows-msvc/debug/mla.pdb
- build: windows-x86_64-debug
os: windows-latest
target: x86_64-pc-windows-msvc
msvc_platform: x64
cargo_arg: ""
path: |
./target/x86_64-pc-windows-msvc/debug/mla.lib
./target/x86_64-pc-windows-msvc/debug/mla.dll
./target/x86_64-pc-windows-msvc/debug/mla.dll.lib
./target/x86_64-pc-windows-msvc/debug/mla.pdb
runs-on: ${{ matrix.os }}

Expand All @@ -51,15 +76,9 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --release --manifest-path=bindings/C/Cargo.toml --target=${{ matrix.target }}
- name: DEBUG
if: matrix.os == 'ubuntu-latest'
run: ls -ahl ./target && pwd && echo ${{ matrix.path }}
args: ${{ matrix.cargo_arg }} --manifest-path=bindings/C/Cargo.toml --target=${{ matrix.target }}
- name: Upload resulting 'mla'
uses: actions/upload-artifact@v2
with:
name: mla-${{ matrix.build }}
path: ${{ matrix.path }}
- name: DEBUG
if: matrix.os == 'windows-latest'
run: dir ./target/${{ matrix.target }}/release/

0 comments on commit 9ae9b60

Please sign in to comment.