Update linux.yml: only upload legacy target for amd64 #124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
mode: [ Debug, Release ] | |
env: | |
CXX: cl | |
CC: cl | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Build | |
run: | | |
cmake -GNinja -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} | |
cmake --build build --target pkg pkg-test | |
- name: Run Tests | |
run: .\build\pkg-test | |
- name: Upload Distribution | |
if: matrix.mode == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pkg | |
path: ./build/pkg.exe | |
# ==== RELEASE ==== | |
- name: Upload Release | |
if: github.event.action == 'published' && matrix.mode == 'Release' | |
uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./build/pkg.exe | |
asset_name: pkg.exe | |
asset_content_type: application/octet-stream |