Skip to content

Commit

Permalink
Update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
lijiahao committed Oct 24, 2024
1 parent c0af386 commit f33fcfa
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,41 @@ on:

jobs:

cachedeps:
name: Generate cached sources
runs-on: ubuntu-latest
needs: ['tests']

steps:
# Intsall node tools
- uses: actions/checkout@v4
with:
repository: 'flatpak/flatpak-builder-tools'

- name: Install Python deps
run: pip3 install aiohttp toml

- name: Install flatpak-builder-tools
run: pipx install ./node/

# Generate sources
- name: Checkout Git repository
uses: actions/checkout@v4
with:
submodules: recursive
# clean: true

- name: Prep artifacts dir
run: mkdir ./deps-dist/

- name: Build yarn cache
run: flatpak-node-generator yarn yarn.lock -o ./deps-dist/yarn-sources.json

- uses: actions/upload-artifact@master
with:
name: flatpak-sources
path: ./deps-dist/

flatpak:
name: Flatpak Build
runs-on: ubuntu-latest
Expand Down

0 comments on commit f33fcfa

Please sign in to comment.