
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Failing after 6s
Build-Test-Publish / build (linux/arm64) (push) Failing after 7s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
name: Build-Test-Publish
|
|
run-name: Build test and publish all tools
|
|
|
|
on: [push]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Login to Gitea
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.jde.nz
|
|
username: DoesntMatter
|
|
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
|
- name: install upx
|
|
run: |
|
|
sudo apt-get install -y upx
|
|
- name: Build Test Publish All
|
|
run: |
|
|
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} ./buildtestpublish_all.sh
|
|
|
|
test-install-from-scratch:
|
|
needs: [build]
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
runs-on: ${{matrix.platform}}
|
|
steps:
|
|
- name: install
|
|
run: |
|
|
curl -s https://getbin.xyz/getpkg-install | bash
|
|
- name: test install
|
|
run: |
|
|
~/.local/bin/getpkg/getpkg install whatsdirty
|
|
- name: test update
|
|
run: |
|
|
~/.local/bin/getpkg/getpkg update
|
|
- name: test list
|
|
run: |
|
|
~/.local/bin/getpkg/getpkg list
|
|
- name: test uninstall
|
|
run: |
|
|
~/.local/bin/getpkg/getpkg uninstall whatsdirty
|
|
- name: test clean
|
|
run: |
|
|
~/.local/bin/getpkg/getpkg clean
|