Skip to content

Commit e3f9e15

Browse files
authored
Update 0-build-snapshot-lin.yml
1 parent fbc9ab6 commit e3f9e15

1 file changed

Lines changed: 31 additions & 36 deletions

File tree

.github/workflows/0-build-snapshot-lin.yml

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 0-build-snapshot-lin
22
# 0-build-snapshot-lin.yml
3-
# 2026-04-08 15:10
3+
# 2025-04-20 01:20
44

55
on:
66
# if: ${{ inputs.lazarus-install.deep-soft }}
@@ -164,49 +164,45 @@ jobs:
164164
mv ${{ env.ZIP_RELEASE_ARCHIVE }} ../
165165
ls -l ../${{ env.ZIP_RELEASE_ARCHIVE }}
166166
167-
- name: Get Lazarus source
168-
uses: deep-soft/checkout@v6
169-
with:
170-
repository: 'fpc/Lazarus'
171-
172-
## - name: Set version to Install Free Pascal
173-
## shell: bash
174-
## run: |
175-
## echo "LAZARUS_VERSION=stable" >> $GITHUB_ENV
176-
## if [[ "${{ inputs.LAZARUS_VERSION }}" != "" ]]; then
177-
## LAZARUS_VERSION="${{ inputs.LAZARUS_VERSION }}";
178-
## else
179-
## LAZARUS_VERSION="stable";
180-
## fi
181-
## echo "LAZARUS_VERSION=$LAZARUS_VERSION"
182-
## echo "LAZARUS_VERSION=$LAZARUS_VERSION" >> $GITHUB_ENV
183-
##
184-
## - name: Install Free Pascal
185-
## uses: deep-soft/lazarus-install@master
186-
## with:
187-
## lazarus-version: "${{ env.LAZARUS_VERSION }}"
188-
### lazarus-version: "stable"
189-
190-
- name: Build and install Lazarus
191-
run: |
192-
make all install
167+
# - name: Get Lazarus source
168+
# uses: deep-soft/checkout@v4
169+
# with:
170+
# repository: 'fpc/Lazarus'
193171

194-
- name: Create Lazarus config
172+
- name: Set version to Install Free Pascal
195173
shell: bash
196174
run: |
197-
sudo mkdir -p /etc/lazarus;
198-
sudo cp tools/install/macosx/environmentoptions.xml /etc/lazarus/environmentoptions.xml;
199-
# sudo sed -i -e "s|_PPCARCH_|fpc|g; s|/Developer/lazarus|/usr/local/share/lazarus|g" /etc/lazarus/environmentoptions.xml;
200-
sudo sed -i -e "s|__LAZARUSDIR__|/usr/local/share/lazarus|g" /etc/lazarus/environmentoptions.xml
175+
echo "LAZARUS_VERSION=stable" >> $GITHUB_ENV
176+
if [[ "${{ inputs.LAZARUS_VERSION }}" != "" ]]; then
177+
LAZARUS_VERSION="${{ inputs.LAZARUS_VERSION }}";
178+
else
179+
LAZARUS_VERSION="stable";
180+
fi
181+
echo "LAZARUS_VERSION=$LAZARUS_VERSION"
182+
echo "LAZARUS_VERSION=$LAZARUS_VERSION" >> $GITHUB_ENV
183+
184+
- name: Install Free Pascal
185+
uses: deep-soft/lazarus-install@master
186+
with:
187+
lazarus-version: "${{ env.LAZARUS_VERSION }}"
188+
# lazarus-version: "stable"
189+
190+
# - name: Build and install Lazarus
191+
# run: |
192+
# make all install
193+
194+
# - name: Create Lazarus config
195+
# shell: bash
196+
# run: |
197+
# sudo mkdir -p /etc/lazarus;
198+
# sudo cp tools/install/macosx/environmentoptions.xml /etc/lazarus/environmentoptions.xml;
199+
# sudo sed -i -e "s|_PPCARCH_|fpc|g; s|/Developer/lazarus|/usr/local/share/lazarus|g" /etc/lazarus/environmentoptions.xml;
201200

202201
# - name: Checkout source
203202
# uses: deep-soft/checkout@v4
204203
# with:
205204
# fetch-depth: 0
206205

207-
### - name: Build packages
208-
### run: ./.github/scripts/create_snapshot.lnx
209-
210206
- name: Build packages
211207
shell: bash
212208
run: |
@@ -295,4 +291,3 @@ jobs:
295291
${{ env.ZIP_ALL }}
296292
${{ env.INFO_FILE }}
297293
# Archive - ZIP_ALL end
298-

0 commit comments

Comments
 (0)