Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Nov 25, 2023
1 parent e4cc29a commit 021abb7
Showing 1 changed file with 53 additions and 14 deletions.
67 changes: 53 additions & 14 deletions .github/workflows/maintenance-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- uses: actions/checkout@v3
with:
repository: crystal-lang/distribution-scripts
branch: refactor/linux-makefile-build-context

- name: Build linux binaries
working-directory: linux
Expand All @@ -38,26 +39,35 @@ jobs:
# name: linux-${{ env.CRYSTAL_VERSION }}
# path: linux/build/*.gz

- name: Upload tarball for use in the next step
uses: actions/upload-artifact@v3
with:
name: tarball
path: |
linux/build/*.tar.gz
!linux/build/*-bundled.tar.gz
build-arrch64:
name: Build aarch64 Linux tarballs
runs-on: [linux, ARM64]
# - name: Upload tarball for use in the next step
# uses: actions/upload-artifact@v3
# with:
# name: tarball
# path: |
# linux/build/*.tar.gz
# !linux/build/*-bundled.tar.gz

build-linux2:
name: Build x86 Linux tarballs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: crystal-lang/distribution-scripts
branch: refactor/linux-makefile-build-context

- name: Build linux binaries
uses: docker://jhass/crystal:1.0.0-alpine-build
working-directory: linux
- name: Build statically linked copiler
uses: docker/build-push-action@v5
with:
args: make all #pull_images=true release=true
file: linux/Dockerfile
push: false
load: true
build-args: |
previous_crystal_release=https://github.com/crystal-lang/crystal/releases/download/${{ env.PREVIOUS_CRYSTAL_VERSION }}/crystal-${{ env.PREVIOUS_CRYSTAL_VERSION }}-1-linux-x86_64.tar.gz
crystal_version=${{ env.CRYSTAL_VERSION }}
crystal_sha1=${{ env.CRYSTAL_SHA1 }}
outputs: |
type=tar,path=linux/crystal-${{ env.CRYSTAL_VERSION }}-1-linux-x86_64.tar
# - name: Upload tarballs as artifacts
# uses: actions/upload-artifact@v3
Expand All @@ -73,6 +83,35 @@ jobs:
linux/build/*.tar.gz
!linux/build/*-bundled.tar.gz
# build-aarch64:
# name: Build aarch64 Linux tarballs
# runs-on: [linux, ARM64]
# steps:
# - uses: actions/checkout@v3
# with:
# repository: crystal-lang/distribution-scripts
# branch: refactor/linux-makefile-build-context

# - name: Build linux binaries
# uses: docker://jhass/crystal:1.0.0-alpine-build # this is only to get an environment with make
# #working-directory: linux
# with:
# args: make all #pull_images=true release=true

# # - name: Upload tarballs as artifacts
# # uses: actions/upload-artifact@v3
# # with:
# # name: linux-${{ env.CRYSTAL_VERSION }}
# # path: linux/build/*.gz

# - name: Upload tarball for use in the next step
# uses: actions/upload-artifact@v3
# with:
# name: tarball
# path: |
# linux/build/*.tar.gz
# !linux/build/*-bundled.tar.gz

package-docker:
name: Build the docker images
runs-on: ubuntu-latest
Expand Down

0 comments on commit 021abb7

Please sign in to comment.