|
17 | 17 | jobs: |
18 | 18 | build: |
19 | 19 | if: github.repository == 'IDI-Systems/acre2' && ! contains(github.event.head_commit.message, '[ci skip]') |
20 | | - runs-on: windows-latest |
| 20 | + runs-on: ubuntu-latest |
21 | 21 | outputs: |
22 | 22 | VERSION: ${{ env.VERSION }} |
23 | 23 | SHA_SHORT: ${{ env.SHA_SHORT }} |
24 | 24 | steps: |
25 | 25 | - name: Checkout the source code |
26 | 26 | uses: actions/checkout@v6 |
| 27 | + - name: Setup Arma 3 Tools # contains only Binarize |
| 28 | + uses: arma-actions/arma3-tools@master |
| 29 | + with: |
| 30 | + toolsUrl: ${{ secrets.FTP_SERVER }}/tools/arma3tools.zip |
27 | 31 | - name: Setup HEMTT |
28 | 32 | uses: arma-actions/hemtt@v1 |
29 | | - - name: Setup Binarize |
30 | | - run: | |
31 | | - C:\msys64\usr\bin\wget.exe ${{ secrets.FTP_SERVER }}/tools/acre2_tools.zip --user ${{ secrets.FTP_USERNAME }} --password ${{ secrets.FTP_PASSWORD }} -q |
32 | | - Expand-Archive acre2_tools.zip -DestinationPath ci |
33 | | - echo "Check Binarize: $(Test-Path .\\ci\\binarize\\binarize_x64.exe)" |
34 | | - hemtt --version |
35 | | - echo "Install Binarize dependencies" |
36 | | - cp .\ci\binarize\X3DAudio1_7.dll,.\ci\binarize\XAPOFX1_5.dll C:\Windows\System32\ |
37 | | - echo "::group::Set Binarize registry path" |
38 | | - New-Item "HKCU:\\Software\\Bohemia Interactive\\binarize" -Force | New-ItemProperty -Name path -Value "${{ github.workspace }}\ci\binarize" |
39 | | - echo "::endgroup::" |
40 | | - $version = Select-String -Path "addons\\main\\script_version.hpp" -Pattern '#define (MAJOR|MINOR|PATCHLVL|BUILD) (\d+)' | ForEach-Object { $_.Matches.Groups[2].Value } | Join-String -Separator "." |
41 | | - echo "VERSION=$version" >> $env:GITHUB_ENV |
42 | | - echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $env:GITHUB_ENV |
43 | | - - name: Test Binarize |
| 33 | + - name: Prepare Metadata |
44 | 34 | run: | |
45 | | - echo "::group::Run Binarize without arguments (look for missing DLLs)" |
46 | | - ./ci/binarize/binarize_x64.exe || true # binarize exits with 1 if no file given |
47 | | - echo "::endgroup::" |
48 | | - shell: bash # outputs missing dll information |
| 35 | + echo "VERSION=$(hemtt value project.version.short)" >> $GITHUB_ENV |
| 36 | + echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV |
49 | 37 | - name: Build (HEMTT) |
50 | 38 | run: | |
51 | 39 | echo "ACRE2 v${{ env.VERSION }} (${{ env.SHA_SHORT }})" |
|
0 commit comments