-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
4,844 additions
and
520 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Build-RTX-Release | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- 'rtx' | ||
paths: | ||
- 'src/**' | ||
jobs: | ||
build: | ||
name: Build binary | ||
runs-on: windows-2022 | ||
strategy: | ||
matrix: | ||
configuration: | ||
- Release | ||
steps: | ||
- name: Wait for previous workflows | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
uses: softprops/turnstyle@v1 | ||
with: | ||
poll-interval-seconds: 10 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check out files | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
lfs: false | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Generate project files | ||
run: tools/premake5 vs2022 | ||
|
||
- name: Set up problem matching | ||
uses: ammaraskar/msvc-problem-matcher@master | ||
|
||
- name: Build ${{matrix.configuration}}-binaries-rtx | ||
run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=Win32 build/iw3xo-dev.sln | ||
|
||
- name: Move build files | ||
run: | | ||
move build/bin/${{matrix.configuration}}/iw3x.dll ./ | ||
move build/bin/${{matrix.configuration}}/iw3x.pdb ./ | ||
- name: Upload ${{matrix.configuration}}-binaries-rtx | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{matrix.configuration}}-binaries-rtx | ||
path: | | ||
./iw3x.dll | ||
./iw3x.pdb | ||
./assets-remix/ | ||
webbook: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Tag String | ||
id: tag | ||
run: | | ||
echo "GIT_TAG=`echo $(git describe --tags --dirty --always)`" >> $GITHUB_ENV | ||
git describe --tags --dirty --always | ||
# … | ||
- uses: tsickert/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.WEBHOOK_URL }} | ||
username: "GitHub Workflow" | ||
avatar-url: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" | ||
embed-author-icon-url: "https://raw.githubusercontent.com/xoxor4d/xoxor4d.github.io/master/assets/img/iw3xo.png" | ||
embed-author-name: "iw3xo-dev/rtx" | ||
embed-author-url: "https://github.com/xoxor4d/iw3xo-dev/tree/rtx" | ||
embed-title: "RTX - Successful build (release)" | ||
embed-color: 0x76b900 | ||
embed-description: "${{ env.GIT_TAG }} [nightly link](https://nightly.link/xoxor4d/iw3xo-dev/workflows/build-rtx-release/rtx/Release-binaries-rtx.zip)" |
Oops, something went wrong.