Skip to content

Commit

Permalink
git actions add ubuntu24, fix 20 and hopefuly macos15
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Boon committed Nov 16, 2024
1 parent 9a5ffb4 commit 3b3b83c
Showing 1 changed file with 45 additions and 3 deletions.
48 changes: 45 additions & 3 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
sudo apt-get update -y
sudo apt-get install libnetcdf-dev
sudo apt-get install libgd3
sudo apt-get -y --allow-downgrades install libgd3=2.2.5-5.2ubuntu2.1
sudo apt-get install libgd-dev
sudo apt-get install gfortran
sudo apt-get install devscripts
Expand Down Expand Up @@ -135,7 +134,50 @@ jobs:
git commit -m "Update Ubuntu 22.04 binaries"
git push
macOS-X:
ubuntu24:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Checkout submodules
run: git submodule update --init --recursive

# Runs a single command using the runners shell
- name: Getting packages
run: |
sudo apt-get update -y
sudo apt-get install libnetcdf-dev
sudo apt-get install libgd3
sudo apt-get install libgd-dev
sudo apt-get install gfortran
sudo apt-get install devscripts
sudo apt-get install debhelper
# Runs a set of commands using the runners shell
- name: compile GLM
run: |
cd $GITHUB_WORKSPACE/glm-source
chmod u+x ./admin/make_release_info.sh
./build_glm.sh
mkdir -p $GITHUB_WORKSPACE/binaries/ubuntu/24.04
cp -r $GITHUB_WORKSPACE/glm-source/binaries/ubuntu/24.04/* $GITHUB_WORKSPACE/binaries/ubuntu/24.04/.
- name: update binaries and push to remote
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git pull
git add -A
git commit -m "Update Ubuntu 24.04 binaries"
git push
macOS-14:
# The type of runner that the job will run on
runs-on: macos-14
env:
Expand Down Expand Up @@ -184,7 +226,7 @@ jobs:
macOS-S:
# The type of runner that the job will run on
runs-on: macos-latest
runs-on: macos-15
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 3b3b83c

Please sign in to comment.