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