don't build snap nix or flatpak
This commit is contained in:
parent
c11f5e990e
commit
ca635f7d3d
73
.github/workflows/build.yml
vendored
73
.github/workflows/build.yml
vendored
@ -515,76 +515,3 @@ jobs:
|
|||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
ccache -s
|
ccache -s
|
||||||
|
|
||||||
snap:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: 'true'
|
|
||||||
- name: Set short version
|
|
||||||
shell: bash
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
run: |
|
|
||||||
ver_short=`git rev-parse --short HEAD`
|
|
||||||
echo "VERSION=$ver_short" >> $GITHUB_ENV
|
|
||||||
- name: Package Snap (Linux)
|
|
||||||
id: snapcraft
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
uses: snapcore/action-build@v1
|
|
||||||
- name: Upload Snap (Linux)
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: pollymc_${{ env.VERSION }}_amd64.snap
|
|
||||||
path: ${{ steps.snapcraft.outputs.snap }}
|
|
||||||
|
|
||||||
flatpak:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-22.08
|
|
||||||
options: --privileged
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
with:
|
|
||||||
submodules: 'true'
|
|
||||||
- name: Build Flatpak (Linux)
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
uses: flatpak/flatpak-github-actions/flatpak-builder@v5
|
|
||||||
with:
|
|
||||||
bundle: "PollyMC.flatpak"
|
|
||||||
manifest-path: flatpak/org.fn2006.PollyMC.yml
|
|
||||||
|
|
||||||
nix:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
package:
|
|
||||||
- pollymc
|
|
||||||
- pollymc-qt5
|
|
||||||
steps:
|
|
||||||
- name: Clone repository
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: 'true'
|
|
||||||
- name: Install nix
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
uses: cachix/install-nix-action@v18
|
|
||||||
with:
|
|
||||||
install_url: https://nixos.org/nix/install
|
|
||||||
extra_nix_config: |
|
|
||||||
auto-optimise-store = true
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
- uses: cachix/cachix-action@v12
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
with:
|
|
||||||
name: pollymc
|
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
||||||
- name: Build
|
|
||||||
if: inputs.build_type == 'Debug'
|
|
||||||
run: nix build .#${{ matrix.package }} --print-build-logs
|
|
||||||
|
Loading…
Reference in New Issue
Block a user