Skip to content

Commit

Permalink
Use Git submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
tintou committed Jan 4, 2024
1 parent 1ab0e06 commit 1f2fd95
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand All @@ -44,7 +46,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Install the dependencies
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true

- name: Install the dependencies
run: |
Expand Down
8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[submodule "girs"]
path = girs
url = https://github.com/nemequ/vala-girs.git
shallow = true
[submodule "extra-vapis"]
path = extra-vapis
url = https://gitlab.gnome.org/GNOME/vala-extra-vapis.git
shallow = true
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ configgen: src/configgen.vala


update-girs:
[ -d girs ] && git -C girs pull || git clone https://github.com/nemequ/vala-girs.git girs --depth 1
[ -d extra-vapis ] && git -C extra-vapis pull || git clone https://gitlab.gnome.org/GNOME/vala-extra-vapis.git extra-vapis --depth 1
git submodule update --remote --init


#
Expand Down
1 change: 1 addition & 0 deletions extra-vapis
Submodule extra-vapis added at a53319
1 change: 1 addition & 0 deletions girs
Submodule girs added at 167d36

0 comments on commit 1f2fd95

Please sign in to comment.