From 1bd3caf8417beb59ff7e5dae87da3e299ce94b82 Mon Sep 17 00:00:00 2001 From: Fred Dushin Date: Sat, 17 Dec 2022 22:48:45 -0500 Subject: [PATCH] Added ci build Signed-off-by: Fred Dushin --- .github/workflows/build-and-test.yaml | 50 +++++++++++++++++++++++++++ ChangeLog | 14 +++++++- 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-and-test.yaml diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml new file mode 100644 index 0000000..8516251 --- /dev/null +++ b/.github/workflows/build-and-test.yaml @@ -0,0 +1,50 @@ +# +# Copyright 2022 Fred Dushin +# +# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later +# + +name: Build and Test + +on: [push, pull_request] + +jobs: + build-and-test: + runs-on: "ubuntu-20.04" + strategy: + matrix: + otp: ["22", "23", "24"] + + steps: + # Setup + - name: "Checkout repo" + uses: actions/checkout@v2 + with: + submodules: 'recursive' + + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp }} + + # Builder info + - name: "System info" + run: | + echo "**uname:**" + uname -a + echo "**OTP version:**" + cat $(dirname $(which erlc))/../releases/RELEASES || true + + - name: "Install deps" + run: | + sudo apt install -y make git + + - name: "Build rebar3" + run: | + cd /tmp + git clone https://github.com/erlang/rebar3.git + cd rebar3 + ./bootstrap + + # Build + - name: "Make" + run: PATH="/tmp/rebar3:${PATH}" make diff --git a/ChangeLog b/ChangeLog index 6047a7c..3c42e3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,7 +4,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.5] +## [0.6.0] + +### Added +- Added ability to include `<<"Line">>` chunks in BEAM files in generated AVM files +- Added CI build + +### Changed +- Changed the `packbeam_api:create` function to take a single map for optional +parameters, instead of coding paramters into function arguments. Previous +versions of the `packbeam_api:create` function that take optional parameters +have been deprecated. + +## [0.5.0] ### Added - Added ability to specify a module name for ordinary (non-BEAM) files (API-only).