-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of the following: commit faf10df Author: azimut <[email protected]> Date: Mon Mar 18 00:22:29 2024 -0300 revert ci changes commit 0e93247 Author: azimut <[email protected]> Date: Mon Mar 18 00:15:46 2024 -0300 ignore mp4 and final test of mv -> cp of stripped commit 61a71d3 Author: azimut <[email protected]> Date: Mon Mar 18 00:09:44 2024 -0300 run commands inside makefile/docker commit 08f6f2b Author: azimut <[email protected]> Date: Sun Mar 17 23:57:19 2024 -0300 add strip into docker step commit 145d7ce Author: azimut <[email protected]> Date: Sun Mar 17 23:48:29 2024 -0300 makefile: remove -ti of docker run commit fd435b5 Author: azimut <[email protected]> Date: Sun Mar 17 23:41:08 2024 -0300 tmp changing workflow to do the docker stuff commit 5efe3dc Author: azimut <[email protected]> Date: Sun Mar 17 23:36:41 2024 -0300 add files for static release commit c5c9063 Author: azimut <[email protected]> Date: Sun Mar 17 22:28:32 2024 -0300 build changes for static target
- Loading branch information
Showing
6 changed files
with
61 additions
and
15 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 |
---|---|---|
@@ -1,34 +1,26 @@ | ||
name: CI build | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- 'LICENSE' | ||
- 'README.md' | ||
- '.github/workflows/release.yml' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: 5.1.x | ||
dune-cache: true | ||
- run: make deps | ||
- run: make dev release | ||
- run: make test | ||
- run: make dev release | ||
- uses: actions/upload-artifact@v2 | ||
if: "!startsWith(github.ref, 'refs/tags/')" | ||
with: | ||
name: ffbar-linux-x86_64 | ||
name: ffbar-ubuntu-linux-x86_64 | ||
path: _build/default/bin/main.exe | ||
if-no-files-found: error | ||
- uses: marvinpinto/action-automatic-releases@latest | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
with: | ||
prerelease: false | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
files: | | ||
_build/default/src/main.exe | ||
LICENSE |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Release on new tag | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: make image | ||
- run: make docker | ||
- run: cp _build_static/default/bin/main.exe ffbar | ||
- uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
prerelease: false | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
files: | | ||
ffbar | ||
LICENSE |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.mp4 | ||
_build_static/ | ||
_build_release/ | ||
|
||
# Created by https://www.toptal.com/developers/gitignore/api/ocaml | ||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM alpine:3.19 | ||
|
||
RUN apk add \ | ||
bash\ | ||
bubblewrap\ | ||
coreutils\ | ||
gcc\ | ||
git\ | ||
m4\ | ||
make\ | ||
musl-dev\ | ||
opam | ||
|
||
RUN opam init\ | ||
--disable-sandboxing\ | ||
--auto-setup\ | ||
--compiler ocaml-base-compiler.5.1.1 | ||
|
||
WORKDIR /build | ||
|
||
ADD Makefile /build/ | ||
ADD ffbar.opam /build/ | ||
|
||
RUN make deps |
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