Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Bad tag check, missing step id, etc. #19

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/build-gdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
$GITHUB_WORKSPACE/build/targets/build_gdb.sh x86

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }}
path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }}
Expand All @@ -54,7 +54,7 @@ jobs:
$GITHUB_WORKSPACE/build/targets/build_gdb.sh x86_64

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }}
path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }}
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
$GITHUB_WORKSPACE/build/targets/build_gdb.sh armhf

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }}
path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }}
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
$GITHUB_WORKSPACE/build/targets/build_gdb.sh aarch64

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }}
path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }}
Expand All @@ -127,6 +127,8 @@ jobs:
name: Create GDB & gdbserver Release
runs-on: ubuntu-latest
needs: [build-x86, build-x86_64, build-armhf, build-aarch64]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -135,18 +137,21 @@ jobs:
run: mkdir /tmp/releases

- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: /tmp/releases

- name: List Artifacts
run: ls -laR /tmp/releases

- name: Fetch tags
run: git fetch --tags --prune --quiet

- name: Tag Release
id: tag_release
run: |
set +e
if git rev-list "gdb-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
if git rev-list "gdb-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for gdb-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
else
Expand All @@ -162,4 +167,4 @@ jobs:
name: gdb-v${{ needs.build-x86.outputs.version }}
tag: gdb-v${{ needs.build-x86.outputs.version }}
artifacts: "/tmp/releases/*/*"
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
26 changes: 15 additions & 11 deletions .github/workflows/build-nmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output x86

- name: Upload tarball
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL }}
path: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL_PATH }}

- name: Upload zip
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package_nmap.outputs.PACKAGED_ZIP }}
path: ${{ steps.package_nmap.outputs.PACKAGED_ZIP_PATH }}
Expand All @@ -54,13 +54,13 @@ jobs:
run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output x86_64

- name: Upload tarball
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL }}
path: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL_PATH }}

- name: Upload zip
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package_nmap.outputs.PACKAGED_ZIP }}
path: ${{ steps.package_nmap.outputs.PACKAGED_ZIP_PATH }}
Expand All @@ -84,13 +84,13 @@ jobs:
run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output armhf

- name: Upload tarball
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL }}
path: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL_PATH }}

- name: Upload zip
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package_nmap.outputs.PACKAGED_ZIP }}
path: ${{ steps.package_nmap.outputs.PACKAGED_ZIP_PATH }}
Expand All @@ -114,13 +114,13 @@ jobs:
run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output aarch64

- name: Upload tarball
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL }}
path: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL_PATH }}

- name: Upload zip
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package_nmap.outputs.PACKAGED_ZIP }}
path: ${{ steps.package_nmap.outputs.PACKAGED_ZIP_PATH }}
Expand All @@ -129,6 +129,8 @@ jobs:
name: Create Nmap Release
runs-on: ubuntu-latest
needs: [build-x86, build-x86_64, build-armhf, build-aarch64]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -137,19 +139,21 @@ jobs:
run: mkdir /tmp/releases

- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: /tmp/releases

- name: List Artifacts
run: ls -laR /tmp/releases

- name: Fetch tags
run: git fetch --tags --prune --quiet

- name: Tag Release
id: tag_release
run: |
set +e
git fetch --quiet --prune --tags
if [[ $(git tag -l | grep nmap-v${{ needs.build-x86.outputs.version }} | wc -l) -gt 0 ]]; then
if git rev-list "nmap-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/build-openssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh x86

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }}
path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }}
Expand All @@ -41,7 +41,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh x86_64

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }}
path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }}
Expand All @@ -62,7 +62,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh armhf

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }}
path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }}
Expand All @@ -83,7 +83,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh aarch64

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }}
path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }}
Expand All @@ -92,6 +92,8 @@ jobs:
name: Create OpenSSH Release
runs-on: ubuntu-latest
needs: [build-x86, build-x86_64, build-armhf, build-aarch64]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -100,18 +102,21 @@ jobs:
run: mkdir /tmp/releases

- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: /tmp/releases

- name: List Artifacts
run: ls -laR /tmp/releases

- name: Fetch tags
run: git fetch --tags --prune --quiet

- name: Tag Release
id: tag_release
run: |
set +e
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for openssh-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else
Expand All @@ -127,4 +132,4 @@ jobs:
name: openssh-v${{ needs.build-x86.outputs.version }}
tag: openssh-v${{ needs.build-x86.outputs.version }}
artifacts: "/tmp/releases/*/*"
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 14 additions & 9 deletions .github/workflows/build-socat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
Expand All @@ -47,7 +47,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86_64

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh armhf

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh aarch64

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh ppc32

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh ppc64

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
Expand All @@ -184,6 +184,8 @@ jobs:
name: Create socat Release
runs-on: ubuntu-latest
needs: [build-x86, build-x86_64, build-armhf, build-aarch64, build-ppc32, build-ppc64]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -192,18 +194,21 @@ jobs:
run: mkdir /tmp/releases

- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: /tmp/releases

- name: List Artifacts
run: ls -laR /tmp/releases

- name: Fetch tags
run: git fetch --tags --prune --quiet

- name: Tag Release
id: tag_release
run: |
set +e
if git rev-list "socat-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
if git rev-list "socat-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for socat-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else
Expand All @@ -219,4 +224,4 @@ jobs:
name: socat-v${{ needs.build-x86.outputs.version }}
tag: socat-v${{ needs.build-x86.outputs.version }}
artifacts: "/tmp/releases/*/*"
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
Loading