7171 asset_path : ${{runner.workspace}}\OFS\installer\ofs-installer.exe
7272 asset_name : OFS-64x_${{github.sha}}.exe
7373 asset_content_type : application/octet-stream
74+
75+ buildAVX :
76+ runs-on : windows-2019
77+
78+ steps :
79+ - uses : actions/checkout@v2
80+ with :
81+ submodules : ' true'
82+ fetch-depth : 0
83+
84+ - name : Gets latest created release info
85+ id : latest_release_info
86+ 87+ env :
88+ GITHUB_TOKEN : ${{ github.token }}
89+
90+ - name : EASTL special treatment
91+ run : |
92+ cd lib/EASTL
93+ git submodule update --init
94+
95+ - name : Create Build Environment
96+ run : cmake -E make_directory ${{runner.workspace}}/build
97+
98+ - name : Configure CMake
99+ shell : bash
100+ working-directory : ${{runner.workspace}}/build
101+ run : cmake $GITHUB_WORKSPACE -DOFS_AVX=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -G "Visual Studio 16 2019" -A x64
102+
103+ - name : Build OFS
104+ working-directory : ${{runner.workspace}}/build
105+ shell : bash
106+ run : |
107+ cmake --build . --config $BUILD_TYPE --target "OpenFunscripter"
108+
109+
110+ - name : FFMPEG & Zip
111+ run : |
112+ choco install -y -r --no-progress InnoSetup
113+ powershell Compress-Archive "${{runner.workspace}}\OFS\bin\Release" "${{runner.workspace}}\OFS-64x_AVX_${{github.sha}}.zip"
114+
115+ - name : Installer
116+ run : iscc "${{runner.workspace}}\OFS\ofs-installer.iss"
117+
118+ - name : Upload Release Zip
119+ id : upload-release-zip
120+ uses : actions/upload-release-asset@v1
121+ env :
122+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123+ with :
124+ upload_url : ${{ steps.latest_release_info.outputs.upload_url }}
125+ asset_path : ${{runner.workspace}}\OFS-64x_AVX_${{github.sha}}.zip
126+ asset_name : OFS-64x_AVX_${{github.sha}}.zip
127+ asset_content_type : application/octet-stream
128+
129+ - name : Upload Release Installer
130+ id : upload-release-installer
131+ uses : actions/upload-release-asset@v1
132+ env :
133+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
134+ with :
135+ upload_url : ${{ steps.latest_release_info.outputs.upload_url }}
136+ asset_path : ${{runner.workspace}}\OFS\installer\ofs-installer.exe
137+ asset_name : OFS-64x_AVX_${{github.sha}}.exe
138+ asset_content_type : application/octet-stream
0 commit comments