mirror of
https://github.com/Egor00f/kolibrios-gcc-toolchain.git
synced 2024-11-21 17:03:48 +01:00
Merge pull request #4 from Egor00f/add-installation-path-selection
Add installation path selection
This commit is contained in:
commit
f2ee70e825
19
.devcontainer/devcontainer.json
Normal file
19
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"image": "mcr.microsoft.com/devcontainers/cpp:debian-12",
|
||||
"features": {
|
||||
},
|
||||
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-vscode.cmake-tools",
|
||||
"usernamehw.errorlens",
|
||||
"streetsidesoftware.code-spell-checker",
|
||||
"streetsidesoftware.code-spell-checker-russian",
|
||||
"ibm.output-colorizer",
|
||||
"chouzz.vscode-innosetup",
|
||||
"github.vscode-github-actions"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run script
|
||||
run: ${{ github.workspace }}/./install.sh
|
||||
run: echo '/home/autobuild/tools' | ${{ github.workspace }}/./install.sh
|
||||
|
||||
- name: Add toolchain to path
|
||||
run: echo "/home/autobuild/tools/win32/bin" >> $GITHUB_PATH
|
||||
@ -60,6 +60,12 @@ jobs:
|
||||
cmake -B ${{ github.workspace }}/build
|
||||
cmake --build ${{ github.workspace }}/build --target Installer
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
# Upload entire repository
|
||||
path: './build'
|
||||
|
||||
# Test Package
|
||||
package:
|
||||
runs-on: ubuntu-latest
|
||||
@ -71,8 +77,14 @@ jobs:
|
||||
cmake -B ${{ github.workspace }}/build
|
||||
cmake --build ${{ github.workspace }}/build --target Package
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
# Upload entire repository
|
||||
path: './build'
|
||||
|
||||
- name: Install package
|
||||
run: sudo apt install ${{ github.workspace }}/build/package.deb
|
||||
run: echo '/home/autobuild/tools' | sudo apt install ${{ github.workspace }}/build/package.deb -y
|
||||
|
||||
- name: Add toolchain to path
|
||||
run: echo "/home/autobuild/tools/win32/bin" >> $GITHUB_PATH
|
||||
@ -84,3 +96,4 @@ jobs:
|
||||
|
||||
- name: Remove package
|
||||
run: sudo apt remove kos32-gcc
|
||||
|
||||
|
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@ -3,6 +3,7 @@
|
||||
"chouzz.vscode-innosetup",
|
||||
"streetsidesoftware.code-spell-checker",
|
||||
"streetsidesoftware.code-spell-checker-russian",
|
||||
"ms-vscode.cmake-tools"
|
||||
"ms-vscode.cmake-tools",
|
||||
"github.vscode-github-actions"
|
||||
]
|
||||
}
|
@ -9,6 +9,7 @@ project(
|
||||
add_custom_target(
|
||||
Package
|
||||
COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/install.sh ${CMAKE_CURRENT_SOURCE_DIR}/package/DEBIAN/postinst
|
||||
COMMAND chmod 775 ${CMAKE_CURRENT_SOURCE_DIR}/package/DEBIAN/postinst
|
||||
COMMAND dpkg-deb --build ${CMAKE_CURRENT_SOURCE_DIR}/package ${CMAKE_CURRENT_BINARY_DIR}/package.deb
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
10
install.sh
10
install.sh
@ -30,8 +30,18 @@ check_utils(){
|
||||
|
||||
pwd
|
||||
|
||||
|
||||
TOOLCHAIN_DIR="/home/autobuild/tools"
|
||||
|
||||
MESSAGE="Toolchain install path(default is $TOOLCHAIN_DIR): "
|
||||
|
||||
echo -n $MESSAGE
|
||||
read INPUT
|
||||
|
||||
if [[ ! -z "$INPUT" ]]; then
|
||||
TOOLCHAIN_DIR=$INPUT
|
||||
fi
|
||||
|
||||
|
||||
print_msg "Checking utilities..."
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||
|
||||
#define MyAppName "KolibriOS gcc toolchain"
|
||||
#define MyAppVersion "0.1.3"
|
||||
#define MyAppVersion "0.1.4"
|
||||
#define MyAppPublisher "Egor00f"
|
||||
#define MyAppURL "https://github.com/Egor00f/kolibrios-gcc-toolchain"
|
||||
|
||||
|
2
package/DEBIAN/control
Normal file → Executable file
2
package/DEBIAN/control
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
Package: kos32-gcc
|
||||
Version: 0.1.3
|
||||
Version: 0.1.4
|
||||
Architecture: all
|
||||
Section: devel
|
||||
Depends: libc6-i386:amd64, libmpc3:amd64
|
||||
|
1
package/DEBIAN/dirs
Normal file
1
package/DEBIAN/dirs
Normal file
@ -0,0 +1 @@
|
||||
/home/autobuild/tools/
|
Loading…
Reference in New Issue
Block a user