Update GitHub actions to use Node 20 #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install SSH keys | |
if: ${{ github.event_name == 'push' }} | |
env: | |
SSH_ID: ${{ secrets.SSH_ID }} | |
run: ./.scripts/install_ssh_id.sh | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install curl mtools libjson-perl libwww-perl libsdl1.2-dev | |
SYSROOT_DIR="/" ./.scripts/install-freemint.sh binutils gcc mintbin | |
./.scripts/install-freemint.sh mintlib fdlibm gemlib | |
./.scripts/install-hcp.sh | |
./.scripts/install-aranym.sh | |
- name: Setup environment | |
run: ./.scripts/setup_env.sh | |
- name: build | |
run: ./.scripts/build.sh | |
- name: deploy | |
if: ${{ github.event_name == 'push' }} | |
env: | |
COMMITER_NAME: ${{ github.event.commits[0].author.name }} | |
COMMITER_EMAIL: ${{ github.event.commits[0].author.email }} | |
run: ./.scripts/deploy.sh |