Skip to content

Commit

Permalink
Change package names
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 23, 2023
1 parent 88e7358 commit 9a3dac3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 40 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- uses: ./
- shell: bash
run: |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/test_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/test_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/bar_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/bar_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/bar_0.0.0-1_rmall.ipk ]
test-path:
name: Test path
runs-on: ubuntu-latest
Expand All @@ -40,12 +40,12 @@ jobs:
- shell: bash
run: |
cd test
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/test_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/test_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/bar_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/bar_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/bar_0.0.0-1_rmall.ipk ]
test-vebose:
name: Test verbose
runs-on: ubuntu-latest
Expand All @@ -57,12 +57,12 @@ jobs:
verbose: true
- shell: bash
run: |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/test_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/test_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/bar_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/bar_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/bar_0.0.0-1_rmall.ipk ]
test-arch:
name: Test arch
runs-on: ubuntu-latest
Expand All @@ -74,12 +74,12 @@ jobs:
arch: rmall
- shell: bash
run: |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ]
! [ -f dist/rm1/example_0.0.0-1_rmall.ipk ]
! [ -f dist/rm2/example_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ]
! [ -f dist/rm1/test_0.0.0-1_rmall.ipk ]
! [ -f dist/rm2/test_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/foo_0.0.0-1_rmall.ipk ]
! [ -f dist/rm1/foo_0.0.0-1_rmall.ipk ]
! [ -f dist/rm2/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/bar_0.0.0-1_rmall.ipk ]
! [ -f dist/rm1/bar_0.0.0-1_rmall.ipk ]
! [ -f dist/rm2/bar_0.0.0-1_rmall.ipk ]
test-package:
name: Test package
runs-on: ubuntu-latest
Expand All @@ -88,15 +88,15 @@ jobs:
uses: actions/checkout@v4
- uses: ./
with:
package: example
package: foo
- shell: bash
run: |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ]
! [ -f dist/rmall/test_0.0.0-1_rmall.ipk ]
! [ -f dist/rm1/test_0.0.0-1_rmall.ipk ]
! [ -f dist/rm2/test_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/foo_0.0.0-1_rmall.ipk ]
! [ -f dist/rmall/bar_0.0.0-1_rmall.ipk ]
! [ -f dist/rm1/bar_0.0.0-1_rmall.ipk ]
! [ -f dist/rm2/bar_0.0.0-1_rmall.ipk ]
test-warnings:
name: Test warnings
runs-on: ubuntu-latest
Expand All @@ -108,9 +108,9 @@ jobs:
warnings: error
- shell: bash
run: |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/test_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/test_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/foo_0.0.0-1_rmall.ipk ]
[ -f dist/rmall/bar_0.0.0-1_rmall.ipk ]
[ -f dist/rm1/bar_0.0.0-1_rmall.ipk ]
[ -f dist/rm2/bar_0.0.0-1_rmall.ipk ]
7 changes: 4 additions & 3 deletions package
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

archs=(rm1 rm2 rmall)
pkgnames=(example test)
pkgnames=(foo bar)
pkgdesc="Example package"
url=https://toltec-dev.org/
pkgver=0.0.0-1
Expand All @@ -16,10 +16,11 @@ source=()
sha256sums=()

build() { true }
example() {

foo() {
package() { true }
}
test() {
bar() {
package() { true }
}

0 comments on commit 9a3dac3

Please sign in to comment.