[ci] Try opencode's ideas
This commit is contained in:
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -10,8 +10,10 @@ jobs:
|
|||||||
name: Rustfmt
|
name: Rustfmt
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout source
|
||||||
- uses: actions-rs/toolchain@v1
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
@ -24,21 +26,16 @@ jobs:
|
|||||||
|
|
||||||
flatpak:
|
flatpak:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
|
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
|
||||||
options: --privileged
|
options: --privileged
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install git
|
- name: Install git
|
||||||
run: |
|
run: dnf install -y git
|
||||||
dnf install -y git
|
|
||||||
|
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
run: |
|
run: |
|
||||||
git clone ${{ github.server_url }}/${{ github.repository }} .
|
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
||||||
git checkout ${{ github.sha }}
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Build Flatpak
|
- name: Build Flatpak
|
||||||
run: |
|
run: |
|
||||||
xvfb-run --auto-servernum \
|
xvfb-run --auto-servernum \
|
||||||
@ -51,12 +48,9 @@ jobs:
|
|||||||
--ccache \
|
--ccache \
|
||||||
build-dir \
|
build-dir \
|
||||||
build-aux/com.ranfdev.Notify.Devel.json
|
build-aux/com.ranfdev.Notify.Devel.json
|
||||||
|
|
||||||
- name: Bundle Flatpak
|
- name: Bundle Flatpak
|
||||||
run: |
|
run: flatpak build-bundle repo notify.flatpak ink.unbl.notify.Devel
|
||||||
flatpak build-bundle repo notify.flatpak com.ranfdev.Notify.Devel
|
- name: Upload artifact
|
||||||
|
|
||||||
- name: Upload artifact (Gitea Packages)
|
|
||||||
run: |
|
run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user