From 06b68b7b3b1111f20ddb6414d2b2fd87d7356a99 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Wed, 30 Oct 2024 15:39:48 +0800 Subject: [PATCH] Add binaries --- .github/workflows/binaries.yml | 132 +++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 .github/workflows/binaries.yml diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml new file mode 100644 index 0000000..3775cf5 --- /dev/null +++ b/.github/workflows/binaries.yml @@ -0,0 +1,132 @@ +name: Binaries + +on: + push: + branches: + - master + pull_request: + branches: + - master + paths-ignore: + - '**.md' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + LISP_VER: 2.4.2 + +jobs: + badge: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: cheeze2000/setup-sbcl@main + with: + version: ${{ env.LISP_VER }} + + - uses: actions/checkout@v4 + + - uses: cl-qob/setup-qob@master + with: + version: 'snapshot' + + - name: Set git config + run: | + git config user.name github-actions + git config user.email github-actions@github.com + + - name: Generate SVG badges (system) + run: make generate_badges_system + + - name: Push generated badges (system) + continue-on-error: true + run: | + git pull + git add . + git commit -m "Update SVG badges - system" + git push + + linux: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + targets: + #- linux-arm64 + - linux-x64 + + steps: + - uses: cheeze2000/setup-sbcl@main + with: + version: ${{ env.LISP_VER }} + + - uses: actions/checkout@v4 + + - name: Extract tar + run: | + tar -xvzf ${{ matrix.targets }}.tar.gz -C ./bin/ + + - name: Prepare Qob (Unix) + run: | + chmod -R 777 .github/scripts/ + .github/scripts/setup-qob + + - name: Test + run: qob info + + macos: + runs-on: macos-latest + strategy: + fail-fast: false + matrix: + targets: + #- macos-arm64 + - macos-x64 + + steps: + - uses: cheeze2000/setup-sbcl@main + with: + version: ${{ env.LISP_VER }} + + - uses: actions/checkout@v4 + + - name: Extract tar + run: | + tar -xvzf ${{ matrix.targets }}.tar.gz -C ./bin/ + + - name: Prepare Qob (Unix) + run: | + chmod -R 777 .github/scripts/ + .github/scripts/setup-qob + + - name: Test + run: qob info + + windows: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + targets: + #- win-arm64 + - win-x64 + + steps: + - uses: cheeze2000/setup-sbcl@main + with: + version: ${{ env.LISP_VER }} + + - uses: actions/checkout@v4 + + - name: Extract zip + run: | + unzip ${{ matrix.targets }}.zip -d ./bin/ + + - name: Prepare Qob (Windows) + run: .github/scripts/setup-qob.ps1 + + - name: Test + run: qob info