-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added GitHub Actions job for testing FreeBSD.
- Loading branch information
1 parent
a66ceaa
commit 182de86
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,6 +284,80 @@ jobs: | |
if: success() || failure() | ||
run: cat test.log | ||
|
||
test-bsd: | ||
if: ${{ ! inputs.no_tests }} | ||
runs-on: ubuntu-latest | ||
env: | ||
TEXTADEPT_HOME: ${{ github.workspace }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout textadept-build dependencies | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: orbitalquark/textadept-build | ||
path: textadept-build | ||
|
||
- name: Install dependencies | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: freebsd | ||
version: '14.1' | ||
shell: bash | ||
environment_variables: TEXTADEPT_HOME | ||
sync_files: false | ||
shutdown_vm: false | ||
run: sudo pkg install -y cmake ninja qt5 ncurses | ||
|
||
- name: Build | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: freebsd | ||
version: '14.1' | ||
shell: bash | ||
environment_variables: TEXTADEPT_HOME | ||
sync_files: runner-to-vm | ||
shutdown_vm: false | ||
run: | | ||
# Move cached dependencies into build/_deps. | ||
mkdir -p build/_deps && mv textadept-build/* build/_deps && rm -r textadept-build | ||
# Build. | ||
if [[ ${{ github.event_name }} != schedule ]]; then | ||
if [[ "${{ github.event.inputs.nightly }}" = true ]]; then nightly="-D NIGHTLY=1"; fi | ||
else | ||
nightly="-D NIGHTLY=1" | ||
fi | ||
cmake -S . -B build ${nightly} -G Ninja | ||
cmake --build build | ||
# Install lexers. | ||
cp -r build/_deps/scintillua-src/lexers . | ||
- name: Test | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: freebsd | ||
version: '14.1' | ||
shell: bash | ||
environment_variables: TEXTADEPT_HOME | ||
sync_files: false | ||
shutdown_vm: false | ||
run: build/textadept-curses -t | ||
timeout-minutes: 1 | ||
|
||
- name: Read test output | ||
if: success() || failure() | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: freebsd | ||
version: '14.1' | ||
shell: bash | ||
environment_variables: TEXTADEPT_HOME | ||
sync_files: false | ||
run: cat test.log | ||
|
||
coverage: | ||
if: ${{ ! inputs.no_coverage }} | ||
needs: modules | ||
|
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