Skip to content

Commit

Permalink
fix ghcr and delete arch from release
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaariel91 committed Aug 20, 2024
1 parent 574e932 commit 8f549b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
context: .
file: Dockerfile
push: true
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.meta-all.outputs.tags }}
Expand All @@ -64,6 +65,7 @@ jobs:
context: .
file: air_prover/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.meta.outputs.tags }}
Expand All @@ -82,6 +84,7 @@ jobs:
context: .
file: air_verifier/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.meta-ver.outputs.tags }}
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-14]
arch: [x64, aarch64]

steps:
- name: Checkout code
Expand All @@ -21,9 +20,9 @@ jobs:
- name: Set up environment
run: |
echo "Setting up environment for ${{ matrix.arch }}"
if [ "${{ matrix.arch }}" == "x64" ]; then
if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
echo "TARGET_ARCH=x86_64" >> $GITHUB_ENV
elif [ "${{ matrix.arch }}" == "aarch64" ]; then
elif [ "${{ matrix.os }}" == "macos-14" ]; then
echo "TARGET_ARCH=aarch64" >> $GITHUB_ENV
fi
Expand All @@ -48,12 +47,6 @@ jobs:
chmod +x ./package_deb.sh
./package_deb.sh ${{ steps.vars.outputs.tag }}
- name: Extract files and build RPM package
if: matrix.os == 'fedora-40'
run: |
chmod +x ./package_rpm.sh
./package_rpm.sh ${{ steps.vars.outputs.tag }}
- name: Rename binaries ubuntu
if: matrix.os == 'ubuntu-22.04'
run: |
Expand Down

0 comments on commit 8f549b6

Please sign in to comment.