Add http proxy for artifacts #148
This file contains hidden or 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: main | |
| on: [push] | |
| jobs: | |
| build-viewer: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install sudo if running on Act | |
| if: ${{ env.ACT }} | |
| run: apt-get update && apt-get install -y sudo | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y wget gcc-12 g++ make cmake pkg-config libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libopengl-dev libglx-dev libglu1-mesa-dev freeglut3-dev libxxf86vm-dev libpng-dev | |
| - name: Setup Golang with cache | |
| uses: magnetikonline/action-golang-cache@v5 | |
| with: | |
| go-version-file: frontend/desktop/go.mod | |
| - name: Build libinfiniemu | |
| run: | | |
| gcc --version | |
| mkdir build | |
| cd build | |
| cmake -DCMAKE_BUILD_TYPE=Release .. | |
| make -j$(nproc) bundling_target | |
| - name: Build frontends | |
| run: | | |
| cd frontend/desktop | |
| go build -o infiniemu ./cmd/infiniemu | |
| go build -o previewer ./cmd/previewer | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: InfiniEmu | |
| path: | | |
| frontend/desktop/infiniemu | |
| frontend/desktop/previewer | |
| if-no-files-found: error |