File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Premake5 from release source
2+
3+ on :
4+ push :
5+ workflow_dispatch :
6+
7+ jobs :
8+ build-linux :
9+ name : Build on Linux
10+ runs-on : ubuntu-latest
11+ container : raphaelit7/gmod-builder:latest_32x
12+ steps :
13+ - name : Install dependencies
14+ run : apt-get update && sudo apt-get install -y build-essential unzip curl
15+
16+ - name : Download Premake Source
17+ run : |
18+ curl -L -o premake-src.zip https://github.com/premake/premake-core/releases/download/v5.0.0-beta7/premake-5.0.0-beta7-src.zip
19+ unzip premake-src.zip -d premake
20+
21+ - name : Build Premake (Linux)
22+ run : |
23+ cd premake/build/gmake.unix
24+ make config=release
25+
26+ - name : Upload Linux binary
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : premake5-linux
30+ path : premake/bin/release/premake5
31+
32+ build-windows :
33+ name : Build on Windows
34+ runs-on : windows-latest
35+ steps :
36+ - name : Install dependencies
37+ run : choco install unzip -y
38+
39+ - name : Download Premake Source
40+ run : |
41+ curl -L -o premake-src.zip https://github.com/premake/premake-core/releases/download/v5.0.0-beta7/premake-5.0.0-beta7-src.zip
42+ powershell -Command "Expand-Archive premake-src.zip -DestinationPath premake"
43+
44+ - name : Set up MSVC environment
45+ uses : ilammy/msvc-dev-cmd@v1
46+
47+ - name : Build Premake (Windows)
48+ run : |
49+ cd premake\build\gmake.windows
50+ nmake config=release
51+
52+ - name : Upload Windows binary
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : premake5-windows
56+ path : premake\bin\release\premake5.exe
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ jobs:
495495 - name : Install Premake
496496 run : |
497497 ${{env.PROJECT_PATH}}
498- curl -L https://github.com/danielga/garrysmod_common /releases/download/premake-build%2F5 .0.0-beta2 /premake-5.0.0-beta2 -windows.zip -o premake.zip
498+ curl -L https://github.com/premake/premake-core /releases/download/v5 .0.0-beta7 /premake-5.0.0-beta7 -windows.zip -o premake.zip
499499 tar -xf premake.zip
500500
501501 - name : Cache MSBuild output
@@ -587,7 +587,7 @@ jobs:
587587 - name : Install Premake
588588 run : |
589589 ${{env.PROJECT_PATH}}
590- curl -L https://github.com/danielga/garrysmod_common /releases/download/premake-build%2F5 .0.0-beta2 /premake-5.0.0-beta2 -windows.zip -o premake.zip
590+ curl -L https://github.com/premake/premake-core /releases/download/v5 .0.0-beta7 /premake-5.0.0-beta7 -windows.zip -o premake.zip
591591 tar -xf premake.zip
592592
593593 - name : Cache MSBuild output
Original file line number Diff line number Diff line change @@ -13,12 +13,15 @@ RUN echo "path-exclude /usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/excludes && \
1313 libstdc++6:i386 \
1414 curl git ca-certificates && \
1515 apt clean && \
16- curl -L -o premake.tar.gz https://github.com/danielga/garrysmod_common /releases/download/premake-build%2F5 .0.0-beta2 /premake-5.0.0-beta2 -linux.tar.gz && \
16+ curl -L -o premake.tar.gz https://github.com/premake/premake-core /releases/download/v5 .0.0-beta7 /premake-5.0.0-beta7 -linux.tar.gz && \
1717 tar -xvf premake.tar.gz --directory=/usr/bin && \
18+ chmod +x /usr/bin/premake5 && \
1819 rm -f premake.tar.gz && \
1920 gcc --version && \
2021 strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX && \
21- rm -rf /var/lib/apt/lists/* /usr/share/* /usr/sbin/* /var/cache/* /var/log/* /var/tmp/* /var/lib/dpkg/info/*
22+ rm -rf /var/lib/apt/lists/* /usr/share/* /usr/sbin/* /var/cache/* /var/log/* /var/tmp/* /var/lib/dpkg/info/* && \
23+ gcc --version && \
24+ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
2225
2326ENV CC="ccache gcc"
2427ENV CXX="ccache g++"
Original file line number Diff line number Diff line change @@ -12,12 +12,15 @@ RUN echo "path-exclude /usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/excludes && \
1212 git ccache \
1313 ca-certificates && \
1414 apt clean && \
15- curl -L -o premake.tar.gz https://github.com/danielga/garrysmod_common /releases/download/premake-build%2F5 .0.0-beta2 /premake-5.0.0-beta2 -linux.tar.gz && \
15+ curl -L -o premake.tar.gz https://github.com/premake/premake-core /releases/download/v5 .0.0-beta7 /premake-5.0.0-beta7 -linux.tar.gz && \
1616 tar -xvf premake.tar.gz --directory=/usr/bin && \
17+ chmod +x /usr/bin/premake5 && \
1718 rm -f premake.tar.gz && \
1819 gcc --version && \
1920 strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX && \
20- rm -rf /var/lib/apt/lists/* /usr/share/* /usr/sbin/* /var/cache/* /var/log/* /var/tmp/* /var/lib/dpkg/info/*
21+ rm -rf /var/lib/apt/lists/* /usr/share/* /usr/sbin/* /var/cache/* /var/log/* /var/tmp/* /var/lib/dpkg/info/* && \
22+ gcc --version && \
23+ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
2124
2225ENV CC="ccache gcc"
2326ENV CXX="ccache g++"
You can’t perform that action at this time.
0 commit comments