-
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.
Implement new CI based on github actions
- Loading branch information
1 parent
6b0637b
commit 6b2f919
Showing
15 changed files
with
536 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
on: push | ||
name: Kryptos CI | ||
jobs: | ||
Linux-GCC: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone kryptos repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install basic tools | ||
shell: bash | ||
run: sh src/build/ci/linux/install-basic-tools.sh | ||
- name: Install Hefesto | ||
shell: bash | ||
run: sh src/build/ci/linux/install-hefesto.sh | ||
- name: Run kryptos forge (GCC) | ||
shell: bash | ||
run: | | ||
cd src | ||
sudo -E hefesto --mk-samples --toolset=gcc --no-test-progress | ||
Linux-Clang: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone kryptos repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install basic tools | ||
shell: bash | ||
run: sh src/build/ci/linux/install-basic-tools.sh | ||
- name: Install Hefesto | ||
shell: bash | ||
run: sh src/build/ci/linux/install-hefesto.sh | ||
- name: Run kryptos forge (Clang) | ||
shell: bash | ||
run: | | ||
cd src | ||
sudo -E hefesto --mk-samples --toolset=clang --no-test-progress | ||
FreeBSD-Clang: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: FreeBSD Forge | ||
uses: vmactions/freebsd-vm@v1 | ||
with: | ||
sync: rsync | ||
copyback: false | ||
prepare: | | ||
pkg install -y sudo git llvm | ||
usesh: true | ||
run: | | ||
. src/build/ci/freebsd/install-hefesto.sh | ||
cd src | ||
sudo -E hefesto --mk-samples --toolset=clang --no-test-progress | ||
cd .. && sudo rm -rf kryptos | ||
FreeBSD-GCC: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: FreeBSD Forge | ||
uses: vmactions/freebsd-vm@v1 | ||
with: | ||
sync: rsync | ||
copyback: false | ||
prepare: | | ||
pkg install -y sudo git lang/gcc | ||
usesh: true | ||
run: | | ||
. src/build/ci/freebsd/install-hefesto.sh | ||
cd src | ||
sudo -E hefesto --mk-samples --toolset=gcc --no-test-progress | ||
cd .. && sudo rm -rf kryptos | ||
NetBSD-GCC: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: NetBSD Forge | ||
uses: vmactions/netbsd-vm@v1 | ||
with: | ||
sync: rsync | ||
copyback: false | ||
prepare: | | ||
/usr/sbin/pkg_add sudo git gcc* | ||
shell: bash | ||
run: | | ||
. src/build/ci/netbsd/install-hefesto.sh | ||
cd src | ||
sudo -E hefesto --mk-samples --toolset=gcc --no-test-progress | ||
cd .. && sudo rm -rf kryptos | ||
NetBSD-Clang: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: NetBSD Forge | ||
uses: vmactions/netbsd-vm@v1 | ||
with: | ||
sync: rsync | ||
copyback: false | ||
prepare: | | ||
/usr/sbin/pkg_add sudo git clang* | ||
shell: bash | ||
run: | | ||
. src/build/ci/netbsd/install-hefesto.sh | ||
cd src | ||
sudo -E hefesto --mk-samples --toolset=clang --no-test-progress | ||
cd .. && sudo rm -rf kryptos | ||
OpenBSD-Clang: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: OpenBSD Forge | ||
uses: vmactions/openbsd-vm@v1 | ||
with: | ||
sync: rsync | ||
copyback: false | ||
prepare: | | ||
pkg_add sudo-1.9.15.5p0 git-2.46.1 llvm-17.0.6p12 | ||
usesh: true | ||
run: | | ||
. src/build/ci/netbsd/install-hefesto.sh | ||
cd src | ||
sudo -E hefesto --mk-samples --toolset=clang --no-test-progress | ||
cd .. && sudo rm -rf kryptos | ||
OpenBSD-GCC: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: OpenBSD Forge | ||
uses: vmactions/openbsd-vm@v1 | ||
with: | ||
sync: rsync | ||
copyback: false | ||
prepare: | | ||
pkg_add sudo-1.9.15.5p0 git-2.46.1 gcc-11.2.0p14 gcc-libs-11.2.0p14 | ||
usesh: true | ||
run: | | ||
. src/build/ci/netbsd/install-hefesto.sh | ||
ln -sf `which egcc` /usr/bin/gcc | ||
cd src | ||
sudo -E hefesto --mk-samples --toolset=gcc --no-test-progress | ||
cd .. && sudo rm -rf kryptos | ||
Windows-GCC: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Clone kryptos repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install Hefesto | ||
shell: cmd | ||
run: | | ||
src\build\ci\windows\install-hefesto.bat && RefreshEnv.cmd && hefesto --version | ||
- name: Run kryptos forge | ||
shell: cmd | ||
run: | | ||
RefreshEnv.cmd && cd src && hefesto --toolset=gcc --mk-samples --no-test-progress | ||
Windows-MSVC: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Clone kryptos repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install Hefesto | ||
shell: cmd | ||
run: | | ||
src\build\ci\windows\install-hefesto.bat && RefreshEnv.cmd | ||
- name: Run kryptos forge | ||
shell: cmd | ||
run: | | ||
choco install -y visualstudio2022buildtools --package-parameters "--includeRecommended --includeOptional --add Microsoft.VisualStudio.Component.VC.14.38.17.8.x86.x64 --passive --locale en-US" | ||
choco install -y visualstudio2022-workload-vctools --package-parameters "--includeRecommended --add Microsoft.VisualStudio.Component.VC.14.38.17.8.x86.x64 --passive" | ||
RefreshEnv.cmd && cd src && hefesto --toolset=msvc --mk-samples --no-test-progress | ||
Windows-Clang: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Clone kryptos repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install Hefesto | ||
shell: cmd | ||
run: | | ||
src\build\ci\windows\install-hefesto.bat && RefreshEnv.cmd && hefesto --version --no-test-progress | ||
- name: Run kryptos forge | ||
shell: cmd | ||
run: | | ||
RefreshEnv.cmd && cd src && hefesto --toolset=clang --mk-samples --no-test-progress |
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,19 @@ | ||
#!/usr/bin/bash | ||
|
||
# | ||
# Copyright (C) 2025 by Rafael Santiago | ||
# | ||
# This is a free software. You can redistribute it and/or modify under | ||
# the terms of the GNU General Public License version 2. | ||
# | ||
# | ||
|
||
git clone https://github.com/rafael-santiago/hefesto --recursive | ||
cd hefesto/src | ||
printf "\n" > blau.txt | ||
sudo ./build.sh < blau.txt | ||
HEFESTO_INCLUDES_HOME="/usr/local/share/hefesto/include"; export HEFESTO_INCLUDES_HOME | ||
HEFESTO_MODULES_HOME="/usr/local/share/hefesto/module"; export HEFESTO_MODULES_HOME | ||
sudo chown -R $USER /usr/local/share/hefesto | ||
cd ../.. | ||
rm -rf hefesto |
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,3 @@ | ||
git | ||
gcc-9 | ||
clang |
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,19 @@ | ||
#!/usr/bin/bash | ||
|
||
# | ||
# Copyright (C) 2025 by Rafael Santiago | ||
# | ||
# This is free software. You can redistribute it and or/modify under | ||
# the terms of the GNU General Public License version 2. | ||
# | ||
# | ||
|
||
|
||
deps_file=$(dirname $0)/deps.txt | ||
|
||
sudo apt-get update | ||
|
||
for dep in `cat $deps_file` | ||
do | ||
sudo apt-get install -y $dep | ||
done |
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,19 @@ | ||
#!/usr/bin/bash | ||
|
||
# | ||
# Copyright (C) 2025 by Rafael Santiago | ||
# | ||
# This is a free software. You can redistribute it and/or modify under | ||
# the terms of the GNU General Public License version 2. | ||
# | ||
# | ||
|
||
git clone https://github.com/rafael-santiago/hefesto --recursive | ||
cd hefesto/src | ||
printf "\n" > blau.txt | ||
sudo ./build.sh < blau.txt | ||
echo "HEFESTO_INCLUDES_HOME=/usr/local/share/hefesto/include" >> "$GITHUB_ENV" | ||
echo "HEFESTO_MODULES_HOME=/usr/local/share/hefesto/module" >> "$GITHUB_ENV" | ||
sudo chown -R $USER /usr/local/share/hefesto | ||
cd ../.. | ||
rm -rf hefesto |
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,19 @@ | ||
#!/usr/bin/bash | ||
|
||
# | ||
# Copyright (C) 2025 by Rafael Santiago | ||
# | ||
# This is a free software. You can redistribute it and/or modify under | ||
# the terms of the GNU General Public License version 2. | ||
# | ||
# | ||
|
||
git clone https://github.com/rafael-santiago/hefesto --recursive | ||
cd hefesto/src | ||
printf "\n" > blau.txt | ||
sudo ./build.sh < blau.txt | ||
HEFESTO_INCLUDES_HOME="/usr/local/share/hefesto/include"; export HEFESTO_INCLUDES_HOME | ||
HEFESTO_MODULES_HOME="/usr/local/share/hefesto/module"; export HEFESTO_MODULES_HOME | ||
sudo chown -R $USER /usr/local/share/hefesto | ||
cd ../.. | ||
rm -rf hefesto |
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,14 @@ | ||
#!/usr/bin/bash | ||
|
||
# | ||
# Copyright (C) 2025 by Rafael Santiago | ||
# | ||
# This is a free software. You can redistribute it and/or modify under | ||
# the terms of the GNU General Public License version 2. | ||
# | ||
# | ||
|
||
ftp ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc.tar.gz | ||
sudo tar -xzf pkgsrc.tar.gz -C /usr | ||
PKG_PATH="http://ftp.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$(uname -m)/$(uname -r | cut -f '1 2' -d.)/All" | ||
export PATH PKG_PATH |
Oops, something went wrong.