Skip to content

Commit

Permalink
Merge pull request #22 from sebthom/gha
Browse files Browse the repository at this point in the history
replace broken Travis builds with GHA builds
  • Loading branch information
kLabz authored Jan 26, 2023
2 parents 91edf63 + 5fb4b81 commit 5067f25
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 13 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: Build

on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- '**/*.adoc'
- '**/*.md'
- '.github/*.yml'
pull_request:
workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/

defaults:
run:
shell: bash

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
haxe:
- latest
- 4.2.5
- 4.1.5
- 4.0.5

steps:
- name: Show environment variables
run: env | sort

- name: Git Checkout
uses: actions/checkout@v3 #https://github.com/actions/checkout

- name: "Install: Haxe ${{ matrix.haxe }}"
uses: krdlab/setup-haxe@v1 # https://github.com/krdlab/setup-haxe
with:
haxe-version: ${{ matrix.haxe }}

##################################################
# Tests
##################################################

- name: Compile [neko]
run: haxe test-neko.hxml

- name: Compile [js]
run: haxe test-js.hxml

- name: Compile [php]
run: haxe test.hxml Lambda --php ignored.php
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
hx3compat
=========

[![Build Status](https://travis-ci.org/HaxeFoundation/hx3compat.svg?branch=master)](https://travis-ci.org/HaxeFoundation/hx3compat)
[![Build Status](https://github.com/HaxeFoundation/hx3compat/workflows/Build/badge.svg "GitHub Actions")](https://github.com/HaxeFoundation/hx3compat/actions?query=workflow%3A%22Build%22)


Haxe 4 compatibility lib for Haxe 3
2 changes: 1 addition & 1 deletion std/js/JQuery.hx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extern class JQueryHelper {
@:overload(function(j:Window):JQuery{})
@:overload(function(j:Element):JQuery { } )

public static inline function J( html : haxe.extern.EitherType<String,haxe.extern.EitherType<JQuery,haxe.extern.EitherType<Window,Element>>> ) : JQuery {
public static function J( html : haxe.extern.EitherType<String,haxe.extern.EitherType<JQuery,haxe.extern.EitherType<Window,Element>>> ) : JQuery {
return new JQuery(cast html);
}

Expand Down

0 comments on commit 5067f25

Please sign in to comment.