-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from billywhizz/main
0.0.18-pre release
- Loading branch information
Showing
11 changed files
with
65 additions
and
90 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 |
---|---|---|
|
@@ -9,19 +9,23 @@ jobs: | |
build-mac: | ||
# if: ${{ false }} # disable | ||
name: mac | ||
runs-on: macos-12 | ||
runs-on: macos-14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [x64] | ||
platform: [arm64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.22.1' | ||
- name: compile runtime | ||
run: | | ||
make ARCH=${{ matrix.platform }} lo | ||
- name: check | ||
env: | ||
LO_HOME: ${{ github.workspace }} | ||
PREFIX: /opt/homebrew/opt | ||
run: | | ||
make check | ||
pip install jsonschema | ||
|
@@ -34,14 +38,14 @@ jobs: | |
path: ${{ github.workspace }}/lo | ||
name: lo-mac-${{ matrix.platform }} | ||
|
||
build-mac-arm: | ||
build-mac-x64: | ||
# if: ${{ false }} # disable | ||
name: mac | ||
runs-on: macos-14 | ||
name: mac-x64 | ||
runs-on: macos-13 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [arm64] | ||
platform: [x64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v5 | ||
|
@@ -56,7 +60,7 @@ jobs: | |
PREFIX: /opt/homebrew/opt | ||
run: | | ||
make check | ||
pip install jsonschema | ||
pip install jsonschema jinja2 | ||
brew install lz4 zstd openssl@3 | ||
./lo test/build.js | ||
./lo build runtime runtime/lo | ||
|
@@ -66,9 +70,9 @@ jobs: | |
path: ${{ github.workspace }}/lo | ||
name: lo-mac-${{ matrix.platform }} | ||
|
||
build-linux-x64: | ||
build-linux: | ||
# if: ${{ false }} # disable | ||
name: linux-x64 | ||
name: linux | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
|
@@ -82,7 +86,7 @@ jobs: | |
sudo apt-get install -qy libcurl4-openssl-dev | ||
- name: compile | ||
run: | | ||
make lo | ||
make ARCH=${{ matrix.platform }} lo | ||
- name: check | ||
env: | ||
LO_HOME: ${{ github.workspace }} | ||
|
@@ -95,49 +99,54 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ${{ github.workspace }}/lo | ||
name: lo-linux-x64 | ||
name: lo-linux-${{ matrix.platform }} | ||
|
||
build-linux-arm: | ||
build-linux-arm64: | ||
if: ${{ false }} # disable | ||
name: linux-arm64 | ||
name: linux | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [x64] | ||
platform: [arm64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: install libcurl | ||
run: | | ||
sudo apt-get install -qy libcurl4-openssl-dev | ||
- name: install arm64 tools | ||
run: | | ||
sudo apt-get install -qy binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | ||
sudo apt-get update -y | ||
sudo apt-get install -qy libcurl4-openssl-dev clang | ||
- name: compile | ||
run: | | ||
make ARCH=arm64 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ lo | ||
make CC=clang CXX=clang++ LINK=clang++ ARCH=${{ matrix.platform }} lo | ||
- name: check | ||
env: | ||
LO_HOME: ${{ github.workspace }} | ||
run: | | ||
make check | ||
sudo apt-get install -qy libffi-dev liblz4-dev libseccomp-dev libsqlite3-dev libtcc-dev zlib1g-dev tcc | ||
LINK=clang++ CC=clang CXX=clang++ ./lo test/build.js | ||
LINK=clang++ CC=clang CXX=clang++ ./lo build runtime runtime/lo | ||
- name: upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ${{ github.workspace }}/lo | ||
name: lo-linux-arm64 | ||
name: lo-linux-${{ matrix.platform }} | ||
|
||
build-windows: | ||
if: ${{ false }} # disable | ||
name: windows | ||
runs-on: windows-latest | ||
runs-on: windows-2022 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [x64] | ||
platform: [x64,arm64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{ matrix.platform }} | ||
- name: Install MSVC/MCBuild (Windows) | ||
uses: microsoft/[email protected] | ||
- name: compile | ||
run: | | ||
make BINDINGS= lo.exe | ||
make BINDINGS= ARCH=${{ matrix.platform }} lo.exe | ||
- name: check | ||
run: | | ||
make check | ||
|
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 |
---|---|---|
|
@@ -13,11 +13,11 @@ jobs: | |
build-mac: | ||
# if: ${{ false }} # disable | ||
name: mac | ||
runs-on: macos-12 | ||
runs-on: macos-14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [x64] | ||
platform: [arm64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: compile | ||
|
@@ -43,14 +43,14 @@ jobs: | |
asset_name: lo-mac-${{ matrix.platform }}.gz | ||
asset_content_type: application/gzip | ||
|
||
build-mac-arm: | ||
build-mac-x64: | ||
# if: ${{ false }} # disable | ||
name: mac | ||
runs-on: macos-14 | ||
name: mac-x64 | ||
runs-on: macos-13 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [arm64] | ||
platform: [x64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: compile | ||
|
@@ -59,7 +59,6 @@ jobs: | |
- name: check | ||
env: | ||
LO_HOME: ${{ github.workspace }} | ||
PREFIX: /opt/homebrew/opt | ||
run: | | ||
make check | ||
brew install lz4 zstd openssl@3 | ||
|
@@ -77,9 +76,9 @@ jobs: | |
asset_name: lo-mac-${{ matrix.platform }}.gz | ||
asset_content_type: application/gzip | ||
|
||
build-linux-x64: | ||
build-linux: | ||
# if: ${{ false }} # disable | ||
name: linux-x64 | ||
name: linux | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
|
@@ -103,45 +102,15 @@ jobs: | |
./lo build runtime runtime/lo | ||
- name: compress runtime | ||
run: | | ||
gzip -9 -c lo > lo-linux-x64.gz | ||
gzip -9 -c lo > lo-linux-${{ matrix.platform }}.gz | ||
- name: upload compressed artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: lo-linux-x64.gz | ||
asset_name: lo-linux-x64.gz | ||
asset_content_type: application/gzip | ||
|
||
build-linux-arm: | ||
if: ${{ false }} # disable | ||
name: linux-arm64 | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [x64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: install arm64 tools | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -qy binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | ||
- name: compile | ||
run: | | ||
make ARCH=arm64 C=aarch64-linux-gnu-gcc CC=aarch64-linux-gnu-g++ lo | ||
- name: compress runtime | ||
run: | | ||
gzip -9 -c lo > lo-linux-arm64.gz | ||
- name: upload compressed artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: lo-linux-arm64.gz | ||
asset_name: lo-linux-arm64.gz | ||
asset_path: lo-linux-${{ matrix.platform }}.gz | ||
asset_name: lo-linux-${{ matrix.platform }}.gz | ||
asset_content_type: application/gzip | ||
|
||
build-windows: | ||
|
@@ -151,15 +120,14 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [x64] | ||
platform: [x64,arm64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{ matrix.platform }} | ||
- name: Install MSVC/MCBuild (Windows) | ||
uses: microsoft/[email protected] | ||
- name: compile | ||
run: | | ||
make lo.exe | ||
make BINDINGS= ARCH=${{ matrix.platform }} lo.exe | ||
- name: check | ||
run: | | ||
make check | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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