-
Notifications
You must be signed in to change notification settings - Fork 135
1 #708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lidaobing
wants to merge
18
commits into
main
Choose a base branch
from
flatpak-snapshot
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
1 #708
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fcb71f8
1
lidaobing e8da57f
1
lidaobing 59666d9
1
lidaobing 7868e6c
1
lidaobing abceb04
1
lidaobing d7a8177
1
lidaobing 87371d5
1
lidaobing 394b2aa
1
lidaobing 7af2920
1
lidaobing 295ec55
1
lidaobing 08b1c4b
1
lidaobing 92e692f
1
lidaobing 76f94f1
1
lidaobing f6b0c2d
1
lidaobing 5c8437d
1
lidaobing f207b62
Revert "1"
lidaobing 1e1576a
1
lidaobing 3f0c134
1
lidaobing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| name: Build Flatpak Snapshot | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - flatpak-snapshot | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build-and-deploy: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| # 1. Checkout repo | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| # 2. Set up Flatpak | ||
| - name: Install Flatpak | ||
| run: | | ||
| sudo apt update | ||
| sudo apt install -y flatpak flatpak-builder git wget xz-utils | ||
|
|
||
| - name: Cache Flatpak SDK | ||
| if: always() | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: ~/.local/share/flatpak | ||
| key: flatpak-sdk-48-${{ runner.os }} | ||
|
|
||
| # 3. Install GNOME SDK runtime | ||
| - name: Install GNOME SDK | ||
| run: | | ||
| sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | ||
| sudo flatpak install --noninteractive flathub org.freedesktop.Sdk//25.08 org.freedesktop.Platform//25.08 | ||
|
|
||
| # 4. Determine snapshot version from Git | ||
| - name: Set snapshot version | ||
| id: vars | ||
| run: | | ||
| SHORT_HASH=$(git rev-parse --short HEAD) | ||
| VERSION="0.10.0~git${SHORT_HASH}" | ||
| echo "VERSION=${VERSION}" >> $GITHUB_ENV | ||
| echo "Snapshot version set to ${VERSION}" | ||
|
|
||
| # 5. Build Flatpak | ||
| - name: Build Flatpak | ||
| run: | | ||
| flatpak-builder --force-clean build-dir scripts/flatpak/io.github.iptux_src.iptux.snapshot.yml | ||
|
|
||
| # 6. Export repository to repo/ | ||
| - name: Export Flatpak repo | ||
| run: | | ||
| flatpak build-export repo build-dir --collection-id=io.github.iptux | ||
|
|
||
| # 7. Commit & push to gh-pages | ||
| - name: Deploy to GitHub Pages | ||
| uses: peaceiris/actions-gh-pages@v4 | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| publish_dir: repo | ||
| publish_branch: gh-pages | ||
| user_name: "GitHub Actions" | ||
| user_email: "actions@github.com" | ||
| commit_message: "Update Flatpak snapshot: ${{ env.VERSION }}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| app-id: io.github.iptux_src.iptux | ||
| runtime: org.freedesktop.Platform | ||
| runtime-version: '25.08' | ||
| sdk: org.freedesktop.Sdk | ||
| command: iptux | ||
| finish-args: | ||
| - --share=network | ||
| - --share=ipc | ||
| - --socket=fallback-x11 | ||
| - --socket=wayland | ||
| - --filesystem=home | ||
|
|
||
| modules: | ||
| - name: libsigc++ | ||
| buildsystem: meson | ||
| sources: | ||
| - type: archive | ||
| url: https://download.gnome.org/sources/libsigc++/2.10/libsigc++-2.10.8.tar.xz | ||
| sha256: 235a40bec7346c7b82b6a8caae0456353dc06e71f14bc414bcc858af1838719a | ||
|
|
||
| - name: jsoncpp | ||
| buildsystem: meson | ||
| sources: | ||
| - type: archive | ||
| url: https://github.com/open-source-parsers/jsoncpp/archive/1.9.5.tar.gz | ||
| sha256: f409856e5920c18d0c2fb85276e24ee607d2a09b5e7d5f0a371368903c275da2 | ||
|
|
||
| # - "shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json" | ||
|
|
||
| - name: iptux | ||
| buildsystem: meson | ||
| sources: | ||
| - type: git | ||
| url: https://github.com/iptux-src/iptux.git | ||
| branch: flatpak-snapshot | ||
| config-opts: | ||
| - --buildtype=release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚨 suggestion (security): Consider pinning GitHub Actions to specific commit SHAs for supply-chain security
Floating tags like
@v4can change over time and introduce supply-chain risk. Please pinactions/checkout(and other third-party actions in this workflow) to a specific commit SHA, with an inline comment noting the version for traceability.Suggested implementation:
If there are other third-party actions used elsewhere in this workflow file (or in other workflow files), they should also be updated to use commit SHA pins with inline comments indicating the tagged version (e.g.,
# vX.Y.Z) for consistency and supply-chain security.