|
| 1 | +name: Build Nightly package (test) |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - 'new_build_image_test' |
| 7 | + |
| 8 | +jobs: |
| 9 | + build_linux: |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + configuration: [FastDebug, Release] |
| 13 | + os: [ubuntu-latest, ubuntu-24.04-arm] |
| 14 | + include: |
| 15 | + - os: ubuntu-latest |
| 16 | + arch: x86_64 |
| 17 | + - os: ubuntu-24.04-arm |
| 18 | + arch: arm64 |
| 19 | + name: Linux |
| 20 | + runs-on: ${{ matrix.os }} |
| 21 | + container: ghcr.io/scp-fs2open/linux_build:sha-ab87451 |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v7 |
| 24 | + name: Checkout |
| 25 | + with: |
| 26 | + submodules: true |
| 27 | + - name: Set workspace as safe |
| 28 | + # This appears to be broken in current actions, so do it manually |
| 29 | + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" |
| 30 | + - name: Configure CMake |
| 31 | + env: |
| 32 | + CONFIGURATION: ${{ matrix.configuration }} |
| 33 | + COMPILER: gcc-9 |
| 34 | + ENABLE_QTFRED: OFF |
| 35 | + run: $GITHUB_WORKSPACE/ci/linux/configure_cmake.sh |
| 36 | + - name: Compile |
| 37 | + working-directory: ./build |
| 38 | + env: |
| 39 | + CONFIGURATION: ${{ matrix.configuration }} |
| 40 | + run: | |
| 41 | + LD_LIBRARY_PATH=$Qt5_DIR/lib:$LD_LIBRARY_PATH ninja -k 20 all |
| 42 | + - name: Run Tests |
| 43 | + working-directory: ./build |
| 44 | + env: |
| 45 | + CONFIGURATION: ${{ matrix.configuration }} |
| 46 | + XDG_RUNTIME_DIR: /root |
| 47 | + run: $GITHUB_WORKSPACE/ci/linux/run_tests.sh |
| 48 | + - name: Generate AppImage |
| 49 | + working-directory: ./build |
| 50 | + env: |
| 51 | + CONFIGURATION: ${{ matrix.configuration }} |
| 52 | + run: $GITHUB_WORKSPACE/ci/linux/generate_appimage.sh $GITHUB_WORKSPACE/build/install |
| 53 | + - name: Upload build result |
| 54 | + uses: actions/upload-artifact@v7 |
| 55 | + with: |
| 56 | + name: linux-${{ matrix.configuration }}-${{ matrix.arch }} |
| 57 | + path: ${{ github.workspace }}/build/install/*.AppImage |
| 58 | + linux_zip: |
| 59 | + name: Build Linux distribution zip |
| 60 | + needs: build_linux |
| 61 | + runs-on: ubuntu-latest |
| 62 | + container: ghcr.io/scp-fs2open/sftp_upload:sha-ab87451 |
| 63 | + strategy: |
| 64 | + matrix: |
| 65 | + arch: [x86_64, arm64] |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@v7 |
| 68 | + name: Checkout |
| 69 | + with: |
| 70 | + submodules: true |
| 71 | + fetch-depth: '0' |
| 72 | + - name: Set workspace as safe |
| 73 | + # This appears to be broken in current actions, so do it manually |
| 74 | + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" |
| 75 | + - name: Download Release builds |
| 76 | + uses: actions/download-artifact@v8 |
| 77 | + with: |
| 78 | + name: linux-Release-${{ matrix.arch }} |
| 79 | + path: builds |
| 80 | + - name: Download FastDebug builds |
| 81 | + uses: actions/download-artifact@v8 |
| 82 | + with: |
| 83 | + name: linux-FastDebug-${{ matrix.arch }} |
| 84 | + path: builds |
| 85 | + - name: Fix permissions |
| 86 | + working-directory: ./builds |
| 87 | + shell: bash |
| 88 | + run: chmod 755 *.AppImage |
| 89 | + - name: Create Distribution package |
| 90 | + working-directory: ./builds |
| 91 | + env: |
| 92 | + ARCH: ${{ matrix.arch }} |
| 93 | + run: $GITHUB_WORKSPACE/ci/linux/create_dist_pack.sh Linux |
| 94 | + - name: Upload result package |
| 95 | + working-directory: ./builds |
| 96 | + env: |
| 97 | + INDIEGAMES_USER: ${{ secrets.INDIEGAMES_USER }} |
| 98 | + INDIEGAMES_SSHPASS: ${{ secrets.INDIEGAMES_PASSWORD }} |
| 99 | + DATACORDER_USER: ${{ secrets.DATACORDER_USER }} |
| 100 | + DATACORDER_SSHPASS: ${{ secrets.DATACORDER_PASSWORD }} |
| 101 | + run: $GITHUB_WORKSPACE/ci/linux/upload_dist_package.sh nightly |
0 commit comments