Skip to content

Commit 928986b

Browse files
committed
ci: use action for testing
1 parent 17873d1 commit 928986b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,8 @@ jobs:
118118
119119
cp .github/tests/00-hello-world scripts/
120120
121-
- name: 🧪 Perform test build
122-
shell: bash
121+
- name: "🛠 Determine EDIT_BASE_ARCH"
123122
run: |
124-
sudo modprobe loop
125-
126123
case "${{ matrix.arch }}" in
127124
arm64)
128125
EDITBASE_ARCH="arm64"
@@ -133,11 +130,15 @@ jobs:
133130
;;
134131
esac
135132
136-
IMAGE="${{ env.IMAGE_NAME }}@${{ needs.build.outputs.digest }}"
137-
COMMAND="--rm --privileged -e EDITBASE_ARCH=$EDITBASE_ARCH -v ${{ github.workspace }}/workspace:/CustoPiZer/workspace -v ${{ github.workspace }}/scripts:/CustoPiZer/workspace/scripts $IMAGE"
133+
echo "EDIT_BASE_ARCH=$EDIT_BASE_ARCH" >> $GITHUB_ENV
138134
139-
echo "About to execute 'docker run $COMMAND'..."
140-
docker run $COMMAND
135+
- name: 🧪 Perform test build using the action
136+
uses: OctoPrint/CustoPiZer@main
137+
with:
138+
workspace: ${{ github.workspace }}/workspace
139+
scripts: ${{ github.workspace }}/scripts
140+
environment: '{ "EDIT_BASE_ARCH": "${{ matrix.arch }}" }'
141+
custopizer: '@${{ needs.build.outputs.digest }}'
141142

142143
deploy:
143144
name: "📦 Deploy"

0 commit comments

Comments
 (0)