Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 34a22af

Browse files
github actions
1 parent 2ef20a2 commit 34a22af

File tree

2 files changed

+65
-7
lines changed

2 files changed

+65
-7
lines changed

.github/workflows/publish_windows_release.yml

+65
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,68 @@ jobs:
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+
uses: jossef/[email protected]
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

src/main.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
int main(int argc, char* argv[])
44
{
5-
#ifdef WIN32
6-
if(!SDL_HasAVX()) {
7-
Util::MessageBoxAlert("Missing AVX support", "CPU doesn't support AVX.");
8-
SDL_Delay(3000);
9-
return -1;
10-
}
11-
#endif
125
OpenFunscripter app;
136
app.setup(argc, argv);
147
int code = app.run();

0 commit comments

Comments
 (0)