Migrate CI to forgejo

This commit is contained in:
Benjamin Collet 2024-12-17 20:02:35 +01:00
parent ab7a02f0dd
commit 6ea45868db
Signed by: bcollet
SSH key fingerprint: SHA256:8UJspOIcCOS+MtSOcnuq2HjKFube4ox1s/+A62ixov4
6 changed files with 21 additions and 21 deletions

View file

@ -4,13 +4,13 @@ on:
jobs: jobs:
build-x86: build-x86:
name: Build socat x86 name: Build socat x86
runs-on: ubuntu-latest runs-on: docker
container: muslcc/x86_64:i686-linux-musl container: muslcc/x86_64:i686-linux-musl
outputs: outputs:
version: ${{ steps.build_socat.outputs.PACKAGED_VERSION }} version: ${{ steps.build_socat.outputs.PACKAGED_VERSION }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh
@ -23,18 +23,18 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86 run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
build-x86_64: build-x86_64:
name: Build socat x86_64 name: Build socat x86_64
runs-on: ubuntu-latest runs-on: docker
container: muslcc/x86_64:x86_64-linux-musl container: muslcc/x86_64:x86_64-linux-musl
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh
@ -47,18 +47,18 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86_64 run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86_64
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
build-armhf: build-armhf:
name: Build socat ARMHF name: Build socat ARMHF
runs-on: ubuntu-latest runs-on: docker
container: muslcc/x86_64:arm-linux-musleabihf container: muslcc/x86_64:arm-linux-musleabihf
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh
@ -79,18 +79,18 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh armhf run: $GITHUB_WORKSPACE/build/targets/build_socat.sh armhf
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
build-aarch64: build-aarch64:
name: Build socat AARCH64 name: Build socat AARCH64
runs-on: ubuntu-latest runs-on: docker
container: muslcc/x86_64:aarch64-linux-musl container: muslcc/x86_64:aarch64-linux-musl
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh
@ -111,18 +111,18 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh aarch64 run: $GITHUB_WORKSPACE/build/targets/build_socat.sh aarch64
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
build-ppc32: build-ppc32:
name: Build socat powerpc32 name: Build socat powerpc32
runs-on: ubuntu-latest runs-on: docker
container: muslcc/x86_64:powerpc-linux-musl container: muslcc/x86_64:powerpc-linux-musl
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh
@ -143,18 +143,18 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh ppc32 run: $GITHUB_WORKSPACE/build/targets/build_socat.sh ppc32
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
build-ppc64: build-ppc64:
name: Build socat powerpc64 name: Build socat powerpc64
runs-on: ubuntu-latest runs-on: docker
container: muslcc/x86_64:powerpc64-linux-musl container: muslcc/x86_64:powerpc64-linux-musl
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh
@ -175,24 +175,24 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh ppc64 run: $GITHUB_WORKSPACE/build/targets/build_socat.sh ppc64
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
create-release: create-release:
name: Create socat Release name: Create socat Release
runs-on: ubuntu-latest runs-on: docker
needs: [build-x86, build-x86_64, build-armhf, build-aarch64, build-ppc32, build-ppc64] needs: [build-x86, build-x86_64, build-armhf, build-aarch64, build-ppc32, build-ppc64]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Prepare Environment - name: Prepare Environment
run: mkdir /tmp/releases run: mkdir /tmp/releases
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: https://code.forgejo.org/forgejo/download-artifact@v4
with: with:
path: /tmp/releases path: /tmp/releases