[ci] Make proper gitea ci and revert github
This commit is contained in:
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
@ -10,10 +10,8 @@ jobs:
|
||||
name: Rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
@ -25,35 +23,17 @@ jobs:
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
flatpak:
|
||||
name: Flatpak
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
|
||||
options: --privileged --device=/dev/fuse
|
||||
options: --privileged
|
||||
steps:
|
||||
- name: Install git
|
||||
run: dnf install -y git
|
||||
- name: Checkout source
|
||||
run: |
|
||||
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
||||
git checkout ${{ gitea.sha }}
|
||||
- name: Build Flatpak
|
||||
run: |
|
||||
xvfb-run --auto-servernum \
|
||||
flatpak-builder \
|
||||
--repo=repo \
|
||||
--force-clean \
|
||||
--no-rofiles-fuse \
|
||||
--install-deps-from=flathub \
|
||||
--default-branch=master \
|
||||
--arch=x86_64 \
|
||||
--ccache \
|
||||
build-dir \
|
||||
build-aux/com.ranfdev.Notify.Devel.json
|
||||
- name: Bundle Flatpak
|
||||
run: flatpak build-bundle repo notify.flatpak ink.unbl.notify.Devel
|
||||
- name: Upload artifact
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-F "file=@notify.flatpak" \
|
||||
${GITEA_SERVER_URL}/api/packages/${GITEA_REPOSITORY_OWNER}/generic/notify/latest/notify.flatpak
|
||||
- uses: actions/checkout@v3
|
||||
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
|
||||
with:
|
||||
bundle: notify.flatpak
|
||||
manifest-path: build-aux/ink.unbl.Notify.Devel.json
|
||||
repository-name: "flathub"
|
||||
run-tests: true
|
||||
cache-key: flatpak-builder-${{ github.sha }}
|
||||
|
||||
Reference in New Issue
Block a user