Merge pull request #8 from crystal-linux/development

Development
main
Michal 2 years ago committed by GitHub
commit 1fe046599e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,22 +16,38 @@ jobs:
steps: steps:
- name: Build - name: Build
run: | run: |
# Set BUILD_DATE
export BUILD_DATE=$(date +'%m-%d-%g-%H-%M')
# Make sure container is up-to-date
pacman -Syu --needed --noconfirm pacman -Syu --needed --noconfirm
pacman -S --noconfirm --needed bind pacman -S --noconfirm --needed bind
# Make sure repo.getcryst.al is up
nslookup repo.getcryst.al nslookup repo.getcryst.al
# Install necessary packages
pacman -S git archiso pacman-contrib --needed --noconfirm pacman -S git archiso pacman-contrib --needed --noconfirm
# Clone ISO repo and enter it
git clone https://github.com/crystal-linux/iso/ git clone https://github.com/crystal-linux/iso/
cd iso cd iso
# Build ISO and rename to match BUILD_DATE
bash build.sh --build-iso bash build.sh --build-iso
mv *.iso crystal-live-${BUILD_DATE}-x86_64.iso
md5sum *.iso > MD5SUM-iso md5sum *.iso > MD5SUM-iso
# Remove chrooted.sh in between operations
rm chrooted.sh rm chrooted.sh
# Likewise, but for the rootfs
bash build.sh --build-bootstrap bash build.sh --build-bootstrap
md5sum *.tar.gz > MD5SUM-rootfs md5sum *.tar.gz > MD5SUM-rootfs
mv *.tar.gz crystal-rootfs-${BUILD_DATE}-x86_64.tar.gz
# Set upload name to BUILD_DATE
- name: Get current date echo "::set-output name=date::${BUILD_DATE}"
id: date
run: echo "::set-output name=date::$(date +'%m-%d-%g-%H-%M')"
- name: Upload - name: Upload
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1

Loading…
Cancel
Save