fix:[#427] refuse to remove stack if in use #418
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/vanilla-os/pico:main | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Install build dependencies | |
run: | | |
apt-get update | |
apt-get install -y pkg-config build-essential | |
- name: Build | |
run: go build -o apx -ldflags="-X 'main.Version=${{ github.sha }}'" | |
- name: Check for missing strings | |
uses: vanilla-os/[email protected] | |
- name: Compress | |
run: tar -czvf apx.tar.gz apx | |
- name: Compress-manpage | |
run: tar -czvf apx-man.tar.gz man/man1/apx.1 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: apx | |
path: | | |
apx.tar.gz | |
apx-man.tar.gz | |
- uses: softprops/action-gh-release@v2 | |
if: github.repository == 'vanilla-os/apx' && github.ref == 'refs/heads/main' | |
with: | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
tag_name: "continuous" | |
prerelease: true | |
name: "Continuous Build" | |
files: | | |
apx.tar.gz | |
apx-man.tar.gz |