[pre-commit.ci] pre-commit autoupdate #72
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: Main | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
ARCH: x86_64 | |
SITE: generic | |
NAME: gmp | |
SRC_URL: https://gmplib.org/download/gmp/ | |
SRC_DIR: ${{ vars.SRC_DIR }} | |
SOFT_DIR: ${{ vars.SOFT_DIR }} | |
REPO_DIR: ${{ vars.REPO_DIR }} | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- 6.1.2 | |
- 6.2.1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: build | |
run: "./build-gh.sh" | |
env: | |
SOURCE_FILE: "${{ env.NAME }}-${{ matrix.version }}.tar.bz2" | |
VERSION: ${{ matrix.version }} | |
- name: find the libs | |
run: find . -name "*.a" | |
- name: cache build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifacts | |
path: | | |
${{ github.workspace }}/**/.libs/libgmp*.so | |
${{ github.workspace }}/**/.libs/libgmp*.a | |
- name: check build | |
run: "sudo -E bash check-build-gh.sh" | |
env: | |
VERSION: ${{ matrix.version }} | |
- name: Make delivery tarball | |
run: tree ${{ env.SOFT_DIR }} ; tar cvfz delivery.tar.gz ${{ env.SOFT_DIR }} | |
- name: cache install | |
uses: actions/upload-artifact@v4 | |
with: | |
name: install-artifacts | |
path: delivery.tar.gz | |
release: | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Get install artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: install-artifacts | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/iron" | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx semantic-release |