Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
fix(ci): use path for flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed Aug 30, 2023
1 parent 8f42314 commit 2aacb96
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@v3
with:
submodules: true
- if: ${{ matrix.arch != 'x86_64' }}
name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -23,8 +25,16 @@ jobs:
- name: Build
run: |
cp packages/gokai_sdk/data/com.expidusos.gokai.Sdk.json.in com.expidusos.gokai.Sdk.json
sed -i "s|@branch@|${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}|g" com.expidusos.gokai.Sdk.json
sed -i -e \
"s|@branch@|${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}|g" \
"s|@path@|$(pwd)|g" \
com.expidusos.gokai.Sdk.json
flatpak-builder --install-deps-from=flathub --install-deps-from=flathub-beta --user --arch=${{ matrix.arch }} --repo=repo builddir com.expidusos.gokai.Sdk.json
- name: Upload artifact
uses: actions/[email protected]
with:
name: flatpak-${{ matrix.arch }}
path: repo/*
linux:
strategy:
matrix:
Expand Down Expand Up @@ -90,5 +100,5 @@ jobs:
- name: Upload artifact
uses: actions/[email protected]
with:
name: ${{ matrix.engine }}-${{ matrix.target }}-${{ matrix.mode }}-${{ matrix.buildtype }}
name: linux-${{ matrix.engine }}-${{ matrix.target }}-${{ matrix.mode }}-${{ matrix.buildtype }}
path: installdir/*
2 changes: 1 addition & 1 deletion packages/gokai_sdk/data/com.expidusos.gokai.Sdk.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"sources": [
{
"type": "git",
"url": "https://github.com/ExpidusOS/gokai.git"
"path": "@path@"
}
],
"modules": [
Expand Down

0 comments on commit 2aacb96

Please sign in to comment.