Skip to content

Commit

Permalink
Restore NetBSD support (#771)
Browse files Browse the repository at this point in the history
Co-authored-by: Akuli <[email protected]>
Fixes: #567
  • Loading branch information
taahol and Akuli committed Feb 19, 2025
1 parent b1b8b6a commit b382a07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/netbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,18 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
# TODO: disabled for now because freezes with no output for some reason.
# Started happening in #562, so it has something to do with self-hosted compiler.
#
with:
fetch-depth: 0 # Fetch the whole Git history
# TODO: don't use an action for this? could we instead install qemu from apt and call it?
- if: false
uses: cross-platform-actions/[email protected]
- uses: cross-platform-actions/[email protected]
env:
PKG_PATH: 'https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All'
with:
operating_system: netbsd
version: '10.0'
environment_variables: PKG_PATH
run: |
sudo pkgin -y install clang gmake diffutils && \
sudo pkgin -y install clang gmake diffutils git && \
gmake && \
./runtests.sh --verbose --stage1 && \
./runtests.sh --verbose --stage2 && \
Expand Down
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# The Jou compiler is written in Jou, but it doesn't help you very much if you
# have nothing that can compile or run Jou code. That's why this script exists.
Expand Down Expand Up @@ -87,7 +87,7 @@ for i in $(seq 1 ${#commits[@]}); do

folder=$(folder_of_commit $i)
rm -rf $folder
mkdir -vp $folder
mkdir -p $folder

# This seems to be the best way to checkout a commit into a folder.
git archive --format=tar $commit | (cd $folder && tar xf -)
Expand Down

0 comments on commit b382a07

Please sign in to comment.