Move Target Raylib Tag to csproj
Also use different GitHub Action for XPath
This commit is contained in:
parent
58a75e039b
commit
c720cbf9e9
3 changed files with 7 additions and 9 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
|
@ -39,19 +39,19 @@ jobs:
|
|||
|
||||
- id: get-tag
|
||||
name: Get Target Raylib Version
|
||||
uses: QwerMike/xpath-action@v1
|
||||
uses: mavrosxristoforos/get-xml-info@1.0
|
||||
with:
|
||||
filename: "./app.config"
|
||||
expression: "string(//appSettings/add[@key='raylib-release-tag']/@value)"
|
||||
xml-file: "./Raylib-cs/Raylib-cs.csproj"
|
||||
xpath: "//TargetRaylibTag"
|
||||
|
||||
- name: echo tag
|
||||
run: echo ${{ steps.get-tag.outputs.results }}
|
||||
run: echo ${{ steps.get-tag.outputs.info }}
|
||||
|
||||
- name: Download raylib Release
|
||||
uses: robinraju/release-downloader@v1.2
|
||||
with:
|
||||
repository: "raysan5/raylib"
|
||||
tag: ${{ steps.get-tag.outputs.results }}
|
||||
tag: ${{ steps.get-tag.outputs.info }}
|
||||
fileName: "*"
|
||||
|
||||
- name: output directory
|
||||
|
|
|
|||
|
|
@ -7,9 +7,11 @@
|
|||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetRaylibTag>3.7.0</TargetRaylibTag>
|
||||
<Version>3.7.0</Version>
|
||||
<PackageVersion>3.7.0</PackageVersion>
|
||||
<Authors>Chris Dill, Raysan5 & Others</Authors>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,4 @@
|
|||
<dllmap dll="raylib" os="windows" target="raylib.dll"/>
|
||||
<dllmap dll="raylib" os="osx" target="libraylib.dylib"/>
|
||||
<dllmap dll="raylib" os="linux" target="libraylib.so.0"/>
|
||||
<appSettings>
|
||||
<add key="raylib-release-tag"
|
||||
value="3.7.0"/>
|
||||
</appSettings>
|
||||
</configuration>
|
||||
Loading…
Reference in a new issue