update alpine #33
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: Build Alpine Package | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: alpine:latest | |
env: | |
TARGET_ARCH: x86_64 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
apk add --no-cache \ | |
alpine-sdk \ | |
cmake \ | |
sudo \ | |
git \ | |
curl \ | |
bash \ | |
build-base \ | |
boost-dev \ | |
gmp-dev \ | |
abuild | |
- name: Change ownership of /github/home | |
run: sudo chown -R $(whoami) /github/home | |
- name: Build | |
run: | | |
chmod +x ./alpine-build.sh | |
./alpine-build.sh | |
- name: Test | |
run: | | |
chmod +x ./test.sh | |
./test.sh | |
- name: Create Alpine package | |
run: | | |
chmod +x ./package_alpine.sh | |
./package_alpine.sh ${{ github.ref_name }} | |
- name: Upload Alpine package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: stone-prover-alpine-package | |
path: /tmp/packages/main/x86_64/*.apk | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: /tmp/packages/main/x86_64/stone-prover-*.apk | |
asset_name: stone-prover-alpine-${{ github.ref }}.apk | |
asset_content_type: application/vnd.alpine.linux.apk |