Skip to content

Use .def forwarding instead of pragma, remove forward_pragmas.h #11

Use .def forwarding instead of pragma, remove forward_pragmas.h

Use .def forwarding instead of pragma, remove forward_pragmas.h #11

Workflow file for this run

name: Build and Release DLLs

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 54, Col: 1): 'name' is already defined, (Line: 56, Col: 1): 'on' is already defined, (Line: 62, Col: 1): 'jobs' is already defined
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
arch: [Win32, x64]
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build ${{ matrix.arch }}
run: |
msbuild freemultiplay.vcxproj -p:Configuration=Release -p:Platform=${{ matrix.arch }} -m
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: steam_api_${{ matrix.arch }}
path: build/${{ matrix.arch }}/steam_api*.dll
create-release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Create release archive
run: |
mkdir -p release/x86 release/x64
cp steam_api.dll release/x86/ 2>/dev/null || true
cp steam_api64.dll release/x64/ 2>/dev/null || true
cd release && zip -r ../freemultiplay-${{ github.ref_name }}.zip .
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: freemultiplay-*.zip
generate_release_notes: true
name: Build and Release DLLs
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
arch: [Win32, x64]
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build ${{ matrix.arch }}
run: |
msbuild freemultiplay.vcxproj -p:Configuration=Release -p:Platform=${{ matrix.arch }} -m
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: steam_api_${{ matrix.arch }}
path: build/${{ matrix.arch }}/steam_api*.dll
create-release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Create release archive
run: |
mkdir -p release/x86 release/x64
cp steam_api.dll release/x86/ 2>/dev/null || true
cp steam_api64.dll release/x64/ 2>/dev/null || true
cd release && zip -r ../freemultiplay-${{ github.ref_name }}.zip .
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: freemultiplay-*.zip
generate_release_notes: true