Skip to content

Commit

Permalink
Updating github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ-Ianozi committed Nov 2, 2024
1 parent e2adbb1 commit 659ec4d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 40 deletions.
65 changes: 31 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up alire
uses: alire-project/setup-alire@v1
uses: alire-project/setup-alire@v3

- name: Build alire
run: >
Expand All @@ -29,7 +29,7 @@ jobs:
run: zip -r getada-linux_x86_64.zip bin

- name: Uploadgetada
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: getada-linux_x86_64.zip
path: getada-linux_x86_64.zip
Expand All @@ -44,7 +44,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up alire
uses: alire-project/setup-alire@v1
uses: alire-project/setup-alire@v3

- name: Build getada
run: >
Expand All @@ -55,67 +55,64 @@ jobs:
run: zip -r getada-macos_x86_64.zip bin

- name: Uploadgetada
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: getada-macos_x86_64.zip
path: getada-macos_x86_64.zip

### Test on windows
build-windows:
runs-on: windows-latest

steps:
build-macos_aarch64:
runs-on: macos-14

steps:

- name: Checkout
uses: actions/checkout@v3

- name: Set up alire
uses: alire-project/setup-alire@v1
uses: alire-project/setup-alire@v3

- name: Build getada
run: >
alr -n update &&
alr -n build --release
### Don't build a release
# - name: Compress getada
# run: 7z a -tzip getada-win.zip bin
#
# - name: Uploadgetada
# uses: actions/upload-artifact@v2
# with:
# name: getada-win.zip
# path: getada-win.zip
### Do this after alr2.0 supports our needs
# build-macos_aarch64:
# runs-on: macos-14
# # May not need this once alr2 comes out?
# steps:
# - name: Install gcc
# id: install-pkg
# uses: joncrain/macos-pkg-install@v1.0
# with:
# pkg_url: https://github.com/simonjwright/distributing-gcc/releases/download/gcc-13.2.0-aarch64-arm-eabi/gcc-13.2.0-aarch64-arm-eabi.pkg
- name: Compress getada
run: zip -r getada-macos_aarch64.zip bin

- name: Uploadgetada
uses: actions/upload-artifact@v4
with:
name: getada-macos_aarch64.zip
path: getada-macos_aarch64.zip

### Test on windows
### I removed this because you shouldn't be using windows for getada.
# build-windows:
# runs-on: windows-latest
#
# steps:
#
# - name: Checkout
# uses: actions/checkout@v3
#
# - name: Set up alire
# uses: alire-project/setup-alire@v1
#
# - name: Build alire
# - name: Build getada
# run: >
# alr -n update &&
# alr -n build --release
#
# ### Don't build a release
# - name: Compress getada
# run: zip -r getada-development-macos_aarch64.zip bin
# run: 7z a -tzip getada-win.zip bin
#
# - name: Uploadgetada
# uses: actions/upload-artifact@v2
# with:
# name: getada-development-macos_aarch64.zip
# path: getada-development-macos_aarch64.zip
# name: getada-win.zip
# path: getada-win.zip



### Don't have toolchains for gnat on aarch64
# build-linux_aarch64:
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/generate-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Build_Website
uses: AnimMouse/setup-appimage@v1
with:
name: yass
url: https://github.com/yet-another-static-site-generator/yass/releases/download/v3.0/yass-x86_64.AppImage
- run: yass version
- name: Install YASS
uses: robinraju/release-downloader@v1
with:
repository: 'yet-another-static-site-generator/yass'
fileName: 'yass-linux_x86_64.zip '
latest: true
extract: true

- name: Compile Yass
run: >
ls -la

0 comments on commit 659ec4d

Please sign in to comment.