Update compiler.yml #88
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
--- | |
name: Compiler | |
on: | |
push: null | |
jobs: | |
windows: | |
name: Windows Build | |
runs-on: windows-2019 | |
steps: | |
- name: Clone Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Compile auto-mcs | |
shell: pwsh | |
run: | | |
systeminfo | |
$python_path = "$env:LOCALAPPDATA\Programs\Python\Python39" | |
md $python_path | |
Move-Item -Force C:\hostedtoolcache\windows\Python\3.9.13\x64\* $python_path | |
powershell -noprofile -executionpolicy bypass -file .\build-tools\build-windows.ps1 | |
- name: Upload Executable | |
uses: actions/upload-artifact@v3 | |
with: | |
name: auto-mcs-windows | |
path: build-tools/dist/ | |
retention-days: 5 | |
macos: | |
name: macOS Build | |
runs-on: macos-12 | |
steps: | |
- name: Clone Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Dependencies | |
run: | | |
brew install [email protected] [email protected] upx | |
- name: Compile auto-mcs | |
run: | | |
cd build-tools | |
chmod +x build-macos.sh | |
sudo ./build-macos.sh | |
chmod +x dist/auto-mcs.app/Contents/MacOS/auto-mcs | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: auto-mcs-macos | |
path: build-tools/dist/ | |
retention-days: 5 | |
linux: | |
name: Linux Build | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clone Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Dependencies | |
run: | | |
sudo apt update -y | |
sudo apt install xvfb fluxbox libasound2 -y | |
export DISPLAY=:0.0 | |
Xvfb :0 -screen 0 1280x720x24 > /dev/null 2>&1 & | |
sleep 1 | |
fluxbox > /dev/null 2>&1 & | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Compile auto-mcs | |
run: | | |
mkdir -p /opt/python/ | |
ln -s /opt/hostedtoolcache/Python/3.9.18/x64 /opt/python/3.9.18 | |
sudo cp -f /usr/lib/x86_64-linux-gnu/libcrypt.so.1 /usr/lib64/libcrypt.so.2 | |
export DISPLAY=:0.0 | |
cd build-tools | |
sed -i "s/su \$(logname) -c/eval/" build-linux.sh | |
chmod +x build-linux.sh | |
# sudo ./build-linux.sh | |
# chmod +x dist/auto-mcs | |
- name: Setup upterm session | |
uses: lhotari/action-upterm@v1 | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: auto-mcs-linux | |
path: build-tools/dist/ | |
retention-days: 5 |